summaryrefslogtreecommitdiffstats
path: root/include/target
diff options
context:
space:
mode:
authorNicholas Bellinger <nab@linux-iscsi.org>2013-12-19 14:13:28 -0800
committerNicholas Bellinger <nab@linux-iscsi.org>2014-01-09 21:48:38 -0800
commitf82f320edc1e26320bd7e58b347d5616e6a23ff2 (patch)
treee46887b340762c45358f8141c533aaba66b0ea05 /include/target
parent38edd724577123c972f2264382005ac910ce747f (diff)
downloadop-kernel-dev-f82f320edc1e26320bd7e58b347d5616e6a23ff2.zip
op-kernel-dev-f82f320edc1e26320bd7e58b347d5616e6a23ff2.tar.gz
target: Convert inquiry temporary buffer to heap memory
This patch converts the temporary buffer in spc_emulate_inquiry() to use dynamically allocated memory, instead of local stack memory. Also bump SE_INQUIRY_BUF up to 1024 bytes to be safe when handling multiple large SCSI name descriptors for EVPD=0x83. Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
Diffstat (limited to 'include/target')
-rw-r--r--include/target/target_core_base.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/target/target_core_base.h b/include/target/target_core_base.h
index 1ba19a4..dd87ab4 100644
--- a/include/target/target_core_base.h
+++ b/include/target/target_core_base.h
@@ -112,7 +112,7 @@
/* Queue Algorithm Modifier default for restricted reordering in control mode page */
#define DA_EMULATE_REST_REORD 0
-#define SE_INQUIRY_BUF 768
+#define SE_INQUIRY_BUF 1024
#define SE_MODE_PAGE_BUF 512
#define SE_SENSE_BUF 96
OpenPOWER on IntegriCloud