fs/bio-integrity: fix a potential mem leak
authorGu Zheng <guz.fnst@cn.fujitsu.com>
Wed, 11 Sep 2013 21:23:21 +0000 (14:23 -0700)
committerLinus Torvalds <torvalds@linux-foundation.org>
Wed, 11 Sep 2013 22:58:21 +0000 (15:58 -0700)
commitbc5c8f0783a4a2b43d05155782e71a22a91b26a5
treecd972f6507e537ef5eec06cd522b5a2bfa27535d
parenta6b088875b5cfc2be95242826f31523214c083a7
fs/bio-integrity: fix a potential mem leak

Free the bio_integrity_pool in the fail path of biovec_create_pool in
function bioset_integrity_create().

Signed-off-by: Gu Zheng <guz.fnst@cn.fujitsu.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
fs/bio-integrity.c