summaryrefslogtreecommitdiff
path: root/sound/pci
diff options
context:
space:
mode:
authorMartin Wilck <mwilck@suse.com>2017-11-28 01:47:35 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-12-13 11:21:30 +0300
commit225849e9af669d4854d1caa4f319bb2df1905338 (patch)
tree7b8bca0d56e722971cc371269dd73cd04fb72e4b /sound/pci
parent3e68cbae89b4296b085a9aa4f5120e6d0b50a3f2 (diff)
downloadlinux-225849e9af669d4854d1caa4f319bb2df1905338.tar.xz
scsi: scsi_devinfo: cleanly zero-pad devinfo strings
commit 81df022b688d43d2a3667518b2f755d384397910 upstream. 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> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'sound/pci')
0 files changed, 0 insertions, 0 deletions