commit | 03ba84ca95a84dba9b42492edd2632dc3c7eb359 | [log] [tgz] |
---|---|---|
author | Hannes Reinecke <hare@suse.de> | Tue Dec 17 09:18:47 2013 +0100 |
committer | Nicholas Bellinger <nab@linux-iscsi.org> | Tue Dec 17 11:05:33 2013 -0800 |
tree | a19747e4c25e7eb33b33eb077903f38897b66e69 | |
parent | 9c6e164c8c28c1f9e24441674f8b8d81551c906b [diff] |
target_core: simplify scsi_name_len calculation scsi_name_len in spc_emulate_evpd_83 is calculated twice, with the results of the first calculation discarded. So remove it. And check for the maximum allowed length, too. Signed-off-by: Hannes Reinecke <hare@suse.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>