]> git.baikalelectronics.ru Git - kernel.git/commit
Btrfs: fix a potential btrfs_bio leak on scrub fixups
authorIlya Dryomov <idryomov@gmail.com>
Fri, 4 Nov 2011 13:41:02 +0000 (09:41 -0400)
committerChris Mason <chris.mason@oracle.com>
Sun, 6 Nov 2011 08:11:29 +0000 (03:11 -0500)
commitd299e44b9c2ceb8bc3ed814d8e2179e2bef3fa80
tree162de09347589bc3bf9bd40f2c2ad6e32283798b
parente89353a9542506b2b1f69d80f47d626c18526377
Btrfs: fix a potential btrfs_bio leak on scrub fixups

In case we were able to map less than we wanted (length < PAGE_SIZE
clause is true) btrfs_bio is still allocated and we have to free it.

Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Signed-off-by: Chris Mason <chris.mason@oracle.com>
fs/btrfs/scrub.c