target/iblock: Fix double bioset_integrity_free bug
authorNicholas Bellinger <[email protected]>
Thu, 3 Apr 2014 03:35:02 +0000 (03:35 +0000)
committerNicholas Bellinger <[email protected]>
Mon, 7 Apr 2014 08:48:54 +0000 (01:48 -0700)
commitd84287bcfe624697cd4f3c1df746beb53b86d9c4
treefe68ddb1ec2c584f6cb9f5665bbf8a0cd090d785
parenta1e1774c6dfa3a524dd8df51ca95185fe5ef3247
target/iblock: Fix double bioset_integrity_free bug

This patch fixes a double free bug during IBLOCK backend shutdown
where bioset_integrity_free() was incorrectly called ahead of
bioset_free(), who is already making the same call directly.

This bug was introduced with commit ecebbf6cc, and will end up
triggering a general protection fault in iblock_free_device()

Reviewed-by: Sagi Grimberg <[email protected]>
Cc: Martin K. Petersen <[email protected]>
Cc: Or Gerlitz <[email protected]>
Cc: Quinn Tran <[email protected]>
Cc: Giridhar Malavali <[email protected]>
Cc: <[email protected]> #3.14+
Signed-off-by: Nicholas Bellinger <[email protected]>
drivers/target/target_core_iblock.c