diff options
author | Martin Wilck <mwilck@suse.com> | 2017-11-27 23:47:35 +0100 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2017-12-04 21:58:35 -0500 |
commit | 81df022b688d43d2a3667518b2f755d384397910 (patch) | |
tree | 94be75c5aef9b3260945238cbc25ad47bbc3bdbf /drivers/scsi/3w-9xxx.c | |
parent | ba69ead9e9e9bb3cec5faf03526c36764ac8942a (diff) |
scsi: scsi_devinfo: cleanly zero-pad devinfo strings
Cleanly fill memory for "vendor" and "model" with 0-bytes for the
"compatible" case rather than adding only a single 0 byte. This
simplifies the devinfo code a a bit, and avoids mistakes in other places
of the code (not in current upstream, but we had one such mistake in the
SUSE kernel).
[mkp: applied by hand and added braces]
Signed-off-by: Martin Wilck <mwilck@suse.com>
Reviewed-by: Bart Van Assche <bart.vanassche@wdc.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/3w-9xxx.c')
0 files changed, 0 insertions, 0 deletions