linux/drivers/scsi/cxlflash
Dan Carpenter eeac8cda2c 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: bc88ac47d5 ("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>
2017-07-12 17:06:51 -04:00
..
Kconfig scsi: cxlflash: Select IRQ_POLL 2017-05-08 22:09:21 -04:00
Makefile cxlflash: Virtual LUN support 2015-08-26 18:05:39 -07:00
common.h scsi: cxlflash: Remove zeroing of private command data 2017-06-26 15:01:13 -04:00
lunmgt.c scsi: cxlflash: Remove port configuration assumptions 2017-04-13 22:55:41 -04:00
main.c scsi: cxlflash: return -EFAULT if copy_from_user() fails 2017-07-12 17:06:51 -04:00
main.h scsi: cxlflash: Support AFU debug 2017-06-26 15:01:12 -04:00
sislite.h scsi: cxlflash: Support WS16 unmap 2017-06-26 15:01:13 -04:00
superpipe.c scsi: cxlflash: Handle AFU sync failures 2017-06-26 15:01:08 -04:00
superpipe.h scsi: cxlflash: Fix warnings/errors 2017-04-13 22:55:41 -04:00
vlun.c scsi: cxlflash: Support WS16 unmap 2017-06-26 15:01:13 -04:00
vlun.h scsi: cxlflash: Fix warnings/errors 2017-04-13 22:55:41 -04:00