Commit d36703a7 authored by David Disseldorp's avatar David Disseldorp Committed by Jiri Slaby

target/stat: print full t10_wwn.model buffer

commit 8f903539 upstream.

Cut 'n paste error saw it only process sizeof(t10_wwn.vendor) characters.
Signed-off-by: default avatarDavid Disseldorp <ddiss@suse.de>
Signed-off-by: default avatarNicholas Bellinger <nab@linux-iscsi.org>
Signed-off-by: default avatarJiri Slaby <jslaby@suse.cz>
parent fd43d7da
......@@ -333,7 +333,7 @@ static ssize_t target_stat_scsi_lu_show_attr_prod(
char str[sizeof(dev->t10_wwn.model)+1];
/* scsiLuProductId */
for (i = 0; i < sizeof(dev->t10_wwn.vendor); i++)
for (i = 0; i < sizeof(dev->t10_wwn.model); i++)
str[i] = ISPRINT(dev->t10_wwn.model[i]) ?
dev->t10_wwn.model[i] : ' ';
str[i] = '\0';
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment