]> git.baikalelectronics.ru Git - kernel.git/commit
target/iblock: Fix double bioset_integrity_free bug
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 3 Apr 2014 03:35:02 +0000 (03:35 +0000)
committerNicholas Bellinger <nab@linux-iscsi.org>
Mon, 7 Apr 2014 08:48:54 +0000 (01:48 -0700)
commit9517ca2abbe1cd50bb0e8637ddd8c7eadccb45f3
treefe68ddb1ec2c584f6cb9f5665bbf8a0cd090d785
parent0a7086715189f41461152534a948ac382a20832c
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 3383b7a19, and will end up
triggering a general protection fault in iblock_free_device()

Reviewed-by: Sagi Grimberg <sagig@mellanox.com>
Cc: Martin K. Petersen <martin.petersen@oracle.com>
Cc: Or Gerlitz <ogerlitz@mellanox.com>
Cc: Quinn Tran <quinn.tran@qlogic.com>
Cc: Giridhar Malavali <giridhar.malavali@qlogic.com>
Cc: <stable@vger.kernel.org> #3.14+
Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
drivers/target/target_core_iblock.c