Btrfs: fix memory leak in raid56
authorLiu Bo <bo.li.liu@oracle.com>
Fri, 22 Sep 2017 18:11:18 +0000 (12:11 -0600)
committerDavid Sterba <dsterba@suse.com>
Mon, 30 Oct 2017 11:27:57 +0000 (12:27 +0100)
commit785884fc31883a11e88710d89c525bb7f76e33df
tree1fe2d1d15d5ead3a3544574bf2134dde25bf432b
parent315d8e98aa4fb67e2765b4c8df10fdf0c0bf0bfb
Btrfs: fix memory leak in raid56

The local bio_list may have pending bios when doing cleanup, it can
end up with memory leak if they don't get freed.

Signed-off-by: Liu Bo <bo.li.liu@oracle.com>
Reviewed-by: David Sterba <dsterba@suse.com>
Signed-off-by: David Sterba <dsterba@suse.com>
fs/btrfs/raid56.c