#define DRV_NAME               "fnic"
 #define DRV_DESCRIPTION                "Cisco FCoE HBA Driver"
-#define DRV_VERSION            "1.6.0.51"
+#define DRV_VERSION            "1.6.0.52"
 #define PFX                    DRV_NAME ": "
 #define DFX                     DRV_NAME "%d: "
 
 
        case FCPIO_SUCCESS:
                sc->result = (DID_OK << 16) | icmnd_cmpl->scsi_status;
                xfer_len = scsi_bufflen(sc);
-               scsi_set_resid(sc, icmnd_cmpl->residual);
 
-               if (icmnd_cmpl->flags & FCPIO_ICMND_CMPL_RESID_UNDER)
+               if (icmnd_cmpl->flags & FCPIO_ICMND_CMPL_RESID_UNDER) {
                        xfer_len -= icmnd_cmpl->residual;
+                       scsi_set_resid(sc, icmnd_cmpl->residual);
+               }
 
                if (icmnd_cmpl->scsi_status == SAM_STAT_CHECK_CONDITION)
                        atomic64_inc(&fnic_stats->misc_stats.check_condition);