summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/isci/request.c
diff options
context:
space:
mode:
authorDan Carpenter <dan.carpenter@oracle.com>2017-06-30 10:01:06 +0200
committerMartin K. Petersen <martin.petersen@oracle.com>2017-07-12 23:06:51 +0200
commiteeac8cda2c957e156093933b860eec09e488fe15 (patch)
treeea0ae90c30da15876cbd6c8d1a127e0461b7e758 /drivers/scsi/isci/request.c
parentscsi: qedi: Add support for Boot from SAN over iSCSI offload (diff)
downloadlinux-eeac8cda2c957e156093933b860eec09e488fe15.tar.xz
linux-eeac8cda2c957e156093933b860eec09e488fe15.zip
scsi: cxlflash: return -EFAULT if copy_from_user() fails
The copy_from/to_user() functions return the number of bytes remaining to be copied but we had intended to return -EFAULT here. Fixes: bc88ac47d5cb ("scsi: cxlflash: Support AFU debug") Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Acked-by: Matthew R. Ochs <mrochs@linux.vnet.ibm.com> Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
Diffstat (limited to 'drivers/scsi/isci/request.c')
0 files changed, 0 insertions, 0 deletions