aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/target/target_core_alua.h
diff options
context:
space:
mode:
authorDavid Disseldorp <ddiss@suse.de>2017-10-19 01:39:20 +0200
committerNicholas Bellinger <nab@linux-iscsi.org>2017-11-04 15:00:30 -0700
commit55435badda8bd8e4c97a8b6c3fa9eef79b02fe44 (patch)
tree06e5ff31fadadac145ed76e2b69584d510dcd217 /drivers/target/target_core_alua.h
parenttarget: fix PR state file path truncation (diff)
downloadlinux-dev-55435badda8bd8e4c97a8b6c3fa9eef79b02fe44.tar.xz
linux-dev-55435badda8bd8e4c97a8b6c3fa9eef79b02fe44.zip
target: fix ALUA state file path truncation
A sufficiently long Unit Serial string, dbroot path, and/or ALUA target portal group name may result in truncation of the ALUA state file path prior to usage. Fix this by using kasprintf() instead. Fixes: fdddf932269a ("target: use new "dbroot" target attribute") Signed-off-by: David Disseldorp <ddiss@suse.de> Reviewed-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to '')
-rw-r--r--drivers/target/target_core_alua.h9
1 files changed, 0 insertions, 9 deletions
diff --git a/drivers/target/target_core_alua.h b/drivers/target/target_core_alua.h
index c69c11baf07f..90643300cd32 100644
--- a/drivers/target/target_core_alua.h
+++ b/drivers/target/target_core_alua.h
@@ -71,15 +71,6 @@
*/
#define ALUA_DEFAULT_IMPLICIT_TRANS_SECS 0
#define ALUA_MAX_IMPLICIT_TRANS_SECS 255
-/*
- * Used by core_alua_update_tpg_primary_metadata() and
- * core_alua_update_tpg_secondary_metadata()
- */
-#define ALUA_METADATA_PATH_LEN 512
-/*
- * Used by core_alua_update_tpg_secondary_metadata()
- */
-#define ALUA_SECONDARY_METADATA_WWN_LEN 256
/* Used by core_alua_update_tpg_(primary,secondary)_metadata */
#define ALUA_MD_BUF_LEN 1024