aboutsummaryrefslogtreecommitdiff
path: root/lib/netdev-notifier-error-inject.c
diff options
context:
space:
mode:
authorKirill A. Shutemov <[email protected]>2022-11-18 02:23:04 +0300
committerMartin K. Petersen <[email protected]>2022-11-26 03:13:22 +0000
commit4e80eef45ad775a54fb06a66bf8267a154781ce5 (patch)
tree3639e5ea2295f26d5f4d398dcb1daefbd6c6d2d1 /lib/netdev-notifier-error-inject.c
parent76dc609556c699676776d53222d342276afd0442 (diff)
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 'lib/netdev-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions