Re: [PATCH v2] scsi: libsas: fix length error in sas_smp_handler()

2017-12-08 Thread John Garry
On 07/12/2017 10:57, Jason Yan wrote: The bsg_job_done() requires the length of payload received, but we give it the untransferred residual. As I understand, this patches fixes (SES) enclosure management for libsas, so it's quite an important patch. Thanks, John Fixes: 651a01364994 ("scsi

[PATCH v2] scsi: libsas: fix length error in sas_smp_handler()

2017-12-07 Thread Jason Yan
The bsg_job_done() requires the length of payload received, but we give it the untransferred residual. Fixes: 651a01364994 ("scsi: scsi_transport_sas: switch to bsg-lib for SMP passthrough") Reported-and-tested-by: chenqilin Signed-off-by: Jason Yan CC: Christoph Hellwig --- drivers/scsi/libs