summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorKirill A. Shutemov <kirill.shutemov@linux.intel.com>2022-11-18 02:23:04 +0300
committerMartin K. Petersen <martin.petersen@oracle.com>2022-11-26 06:13:22 +0300
commit4e80eef45ad775a54fb06a66bf8267a154781ce5 (patch)
tree3639e5ea2295f26d5f4d398dcb1daefbd6c6d2d1 /scripts
parent76dc609556c699676776d53222d342276afd0442 (diff)
downloadlinux-4e80eef45ad775a54fb06a66bf8267a154781ce5.tar.xz
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 <kirill.shutemov@linux.intel.com> Link: https://lore.kernel.org/r/20221117232304.1544-1-kirill.shutemov@linux.intel.com Cc: "James E.J. Bottomley" <jejb@linux.ibm.com> Cc: "Martin K. Petersen" <martin.petersen@oracle.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'scripts')
0 files changed, 0 insertions, 0 deletions