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: 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>
2017-07-12 17:06:51 -04:00
..
2017-05-08 22:09:21 -04:00
2017-06-26 15:01:12 -04:00
2015-08-26 18:05:39 -07:00
2017-06-26 15:01:13 -04:00
2017-06-26 15:01:13 -04:00
2017-04-13 22:55:41 -04:00