]> git.karo-electronics.de Git - linux-beck.git/commit
[SCSI] target: fix use after free detected by SLUB poison
authorNicholas Bellinger <nab@linux-iscsi.org>
Wed, 9 Feb 2011 23:34:54 +0000 (15:34 -0800)
committerJames Bottomley <James.Bottomley@suse.de>
Sat, 12 Feb 2011 18:32:41 +0000 (12:32 -0600)
commit1f6fe7cba1c0a817a8712d7fdd0ec1b4ddd4ea2f
treed3210e224f8c415d78fbf70883026fa945591b8a
parente89d15eeadb172bd53ca6362bf9ab6b22077224c
[SCSI] target: fix use after free detected by SLUB poison

This patch moves a large number of memory release paths inside of the
configfs callback target_core_hba_item_ops->release() called from
within fs/configfs/item.c: config_item_cleanup() context.  This patch
resolves the SLUB 'Poison overwritten' warnings.

Signed-off-by: Nicholas A. Bellinger <nab@linux-iscsi.org>
Signed-off-by: James Bottomley <James.Bottomley@suse.de>
drivers/target/target_core_configfs.c
drivers/target/target_core_fabric_configfs.c
include/target/target_core_base.h