Skip to content

Commit 8f90353

Browse files
ddissNicholas Bellinger
authored andcommitted
target/stat: print full t10_wwn.model buffer
Cut 'n paste error saw it only process sizeof(t10_wwn.vendor) characters. Signed-off-by: David Disseldorp <ddiss@suse.de> Signed-off-by: Nicholas Bellinger <nab@linux-iscsi.org>
1 parent d94e5a6 commit 8f90353

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/target/target_core_stat.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ static ssize_t target_stat_lu_prod_show(struct config_item *item, char *page)
246246
char str[sizeof(dev->t10_wwn.model)+1];
247247

248248
/* scsiLuProductId */
249-
for (i = 0; i < sizeof(dev->t10_wwn.vendor); i++)
249+
for (i = 0; i < sizeof(dev->t10_wwn.model); i++)
250250
str[i] = ISPRINT(dev->t10_wwn.model[i]) ?
251251
dev->t10_wwn.model[i] : ' ';
252252
str[i] = '\0';

0 commit comments

Comments
 (0)