aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/scsi_debug.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <[email protected]>2022-11-17 23:23:04 +0000
committerMartin K. Petersen <[email protected]>2022-11-26 03:13:22 +0000
commit4e80eef45ad775a54fb06a66bf8267a154781ce5 (patch)
tree3639e5ea2295f26d5f4d398dcb1daefbd6c6d2d1 /drivers/scsi/scsi_debug.c
parentscsi: megaraid_sas: Fix some spelling mistakes in comment (diff)
downloadkernel-4e80eef45ad775a54fb06a66bf8267a154781ce5.tar.gz
kernel-4e80eef45ad775a54fb06a66bf8267a154781ce5.zip
scsi: sg: Fix get_user() in call sg_scsi_ioctl()
get_user() expects the pointer to be pointer-to-simple-variable type, but sic->data is array of 'unsigned char'. It violates get_user() contracts. Explicitly take pointer to the first element of the array. It matches current behaviour. This is preparation for fixing sparse warnings caused by Linear Address Masking patchset. Signed-off-by: Kirill A. Shutemov <[email protected]> Link: https://lore.kernel.org/r/[email protected] Cc: "James E.J. Bottomley" <[email protected]> Cc: "Martin K. Petersen" <[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