scsi: fnic: Set scsi_set_resid() only for underflow
authorKaran Tilak Kumar <kartilak@cisco.com>
Sat, 21 Nov 2020 01:51:34 +0000 (17:51 -0800)
committerMartin K. Petersen <martin.petersen@oracle.com>
Tue, 24 Nov 2020 03:37:50 +0000 (22:37 -0500)
commit74ae6d6a6805f9fe162e4527d8ff0f7d2f9bc0d0
tree0961d1907387b6fe101762cd413ef9e83aad1b13
parent875d4eda3bd67315418f4e6f6725a877aa1786b5
scsi: fnic: Set scsi_set_resid() only for underflow

Set scsi_set_resid() only if FCPIO_ICMND_CMPL_RESID_UNDER is set.

Link: https://lore.kernel.org/r/20201121015134.18872-1-kartilak@cisco.com
Reviewed-by: Arulprabhu Ponnusamy <arulponn@cisco.com>
Co-developed-by: Satish Kharat <satishkh@cisco.com>
Signed-off-by: Satish Kharat <satishkh@cisco.com>
Signed-off-by: Karan Tilak Kumar <kartilak@cisco.com>
Signed-off-by: Martin K. Petersen <martin.petersen@oracle.com>
drivers/scsi/fnic/fnic.h
drivers/scsi/fnic/fnic_scsi.c