diff options
author | Kirill A. Shutemov <kirill.shutemov@linux.intel.com> | 2022-11-18 02:23:04 +0300 |
---|---|---|
committer | Martin K. Petersen <martin.petersen@oracle.com> | 2022-11-26 06:13:22 +0300 |
commit | 4e80eef45ad775a54fb06a66bf8267a154781ce5 (patch) | |
tree | 3639e5ea2295f26d5f4d398dcb1daefbd6c6d2d1 /include/uapi/linux/btrfs_tree.h | |
parent | 76dc609556c699676776d53222d342276afd0442 (diff) | |
download | linux-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 'include/uapi/linux/btrfs_tree.h')
0 files changed, 0 insertions, 0 deletions