diff options
author | Nicholas Bellinger <nab@linux-iscsi.org> | 2011-02-10 00:34:54 +0100 |
---|---|---|
committer | James Bottomley <James.Bottomley@suse.de> | 2011-02-12 19:32:41 +0100 |
commit | 1f6fe7cba1c0a817a8712d7fdd0ec1b4ddd4ea2f (patch) | |
tree | d3210e224f8c415d78fbf70883026fa945591b8a /include | |
parent | [SCSI] target: Remove procfs based target_core_mib.c code (diff) | |
download | linux-1f6fe7cba1c0a817a8712d7fdd0ec1b4ddd4ea2f.tar.xz linux-1f6fe7cba1c0a817a8712d7fdd0ec1b4ddd4ea2f.zip |
[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.h | 1 |
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; |