]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
scsi: scsi_ioctl: Use strnlen() in scsi_ioctl_get_pci()
authorThorsten Blum <thorsten.blum@linux.dev>
Sun, 17 May 2026 17:15:47 +0000 (19:15 +0200)
committerMartin K. Petersen <martin.petersen@oracle.com>
Sat, 23 May 2026 01:12:32 +0000 (21:12 -0400)
commit09be9d404f42fd2e7d4d378cae07499879f837f4
treed4add1088f3eacce36e90a6092285aa82ef169b7
parent016d484531e3169cd7bcb26e0ac2c5523080809f
scsi: scsi_ioctl: Use strnlen() in scsi_ioctl_get_pci()

Use strnlen() to limit string scanning to 20 characters.

Reformat the code and use tabs instead of spaces while at it.

[mkp: tweaked comment formatting]

Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Reviewed-by: John Garry <john.g.garry@oracle.com>
Link: https://patch.msgid.link/20260517171546.2304-2-thorsten.blum@linux.dev
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/scsi_ioctl.c