[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)
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>

No differences found