summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2011-02-10 02:34:54 +0300
committerJames Bottomley <James.Bottomley@suse.de>2011-02-12 21:32:41 +0300
commit1f6fe7cba1c0a817a8712d7fdd0ec1b4ddd4ea2f (patch)
treed3210e224f8c415d78fbf70883026fa945591b8a /include
parente89d15eeadb172bd53ca6362bf9ab6b22077224c (diff)
downloadlinux-1f6fe7cba1c0a817a8712d7fdd0ec1b4ddd4ea2f.tar.xz
[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>
Diffstat (limited to 'include')
-rw-r--r--include/target/target_core_base.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index 9f9265569185..0828b6c8610a 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -882,6 +882,7 @@ struct se_port {
} ____cacheline_aligned;
struct se_tpg_np {
+ struct se_portal_group *tpg_np_parent;
struct config_group tpg_np_group;
} ____cacheline_aligned;