aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_debug.c
diff options
context:
space:
mode:
authorDan Carpenter <[email protected]>2021-10-13 08:30:05 +0000
committerMartin K. Petersen <[email protected]>2021-10-19 02:38:34 +0000
commit30e99f05f8b19b8274f3666afb70c9cc686ec65c (patch)
tree8e7f695c66a64337922b4d701248bc6bc8b04d04 /drivers/scsi/scsi_debug.c
parentscsi: sd: Print write through due to no caching mode page as warning (diff)
downloadkernel-30e99f05f8b19b8274f3666afb70c9cc686ec65c.tar.gz
kernel-30e99f05f8b19b8274f3666afb70c9cc686ec65c.zip
scsi: mpi3mr: Use scnprintf() instead of snprintf()
I intended to move from snprintf() to scnprintf() in the previous patch but I messed up and did not do that. The result of my bug is that it this function could trigger a WARN() if the buffer is too large. Link: https://lore.kernel.org/r/20211013083005.GA8592@kili Fixes: 76a4f7cc5973 ("scsi: mpi3mr: Clean up mpi3mr_print_ioc_info()") Signed-off-by: Dan Carpenter <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/scsi/scsi_debug.c')
0 files changed, 0 insertions, 0 deletions