]> git.karo-electronics.de Git - karo-tx-linux.git/commit
target: Convert inquiry temporary buffer to heap memory
authorNicholas Bellinger <nab@linux-iscsi.org>
Thu, 19 Dec 2013 22:13:28 +0000 (14:13 -0800)
committerNicholas Bellinger <nab@linux-iscsi.org>
Thu, 19 Dec 2013 22:17:24 +0000 (14:17 -0800)
commitd79dc4525ad557f34e322d4c8f9d9de1b8fc9048
treef5b1d74843461b199386118a2a5a2cd5095ff33d
parentb8cf56076ff681617bfd1aa6137404ccf97a858c
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>
drivers/target/target_core_spc.c
include/target/target_core_base.h