projects
/
GitHub
/
moto-9609
/
android_kernel_motorola_exynos9610.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d94e5a6
)
target/stat: print full t10_wwn.model buffer
author
David Disseldorp
<ddiss@suse.de>
Fri, 27 Nov 2015 17:37:47 +0000
(18:37 +0100)
committer
Nicholas Bellinger
<nab@linux-iscsi.org>
Sun, 29 Nov 2015 05:23:13 +0000
(21:23 -0800)
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>
drivers/target/target_core_stat.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/target/target_core_stat.c
b/drivers/target/target_core_stat.c
index 273c72b2b83dc016b2a317b778a8c391eebcb9c8..81a6b3e07687232df9b2bba5d77c1caf01d6c6e8 100644
(file)
--- a/
drivers/target/target_core_stat.c
+++ b/
drivers/target/target_core_stat.c
@@
-246,7
+246,7
@@
static ssize_t target_stat_lu_prod_show(struct config_item *item, char *page)
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';