aboutsummaryrefslogtreecommitdiff
path: root/drivers/usb/cdns3/cdns3-debug.h
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2020-03-15 10:42:39 +0100
committerMartin K. Petersen <[email protected]>2020-03-17 13:36:12 -0400
commitff33d0e2b9d10ba8a0ccb09261f5f9adb1ab32cb (patch)
tree9ca7a598c0a47d5591f22e739a3ad98763c2cf32 /drivers/usb/cdns3/cdns3-debug.h
parent6f0cf4247442b24486f64df8b613deb294274b7c (diff)
scsi: megaraid_sas: Use scnprintf() for avoiding potential buffer overflow
Since snprintf() returns the would-be-output size instead of the actual output size, the succeeding calls may go beyond the given buffer limit. Fix it by replacing with scnprintf(). Also corrected the wrongly passed limit size. The remaining buffer size must be decremented. Link: https://lore.kernel.org/r/[email protected] Cc: "James E . J . Bottomley" <[email protected]> Cc: "Martin K . Petersen" <[email protected]> Cc: Kashyap Desai <[email protected]> Cc: Sumit Saxena <[email protected]> Cc: Shivasharan S <[email protected]> Cc: [email protected] Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Martin K. Petersen <[email protected]>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-debug.h')
0 files changed, 0 insertions, 0 deletions