From: David S. Miller Date: Sat, 19 Apr 2008 14:16:38 +0000 (-0500) Subject: [SCSI] esp_scsi: Make cur_residue and tot_residue signed. X-Git-Tag: v2.6.26-rc1~1027^2~25 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=582fb6c03a0e89d05e4efa8a3e4bd09d0942dadc;p=platform%2Fkernel%2Flinux-3.10.git [SCSI] esp_scsi: Make cur_residue and tot_residue signed. Many of the overflow checks test whether the value has gone negative, and we want to retain such checks. Reported by Julia Lawall. Signed-off-by: David S. Miller Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/esp_scsi.h b/drivers/scsi/esp_scsi.h index d5576d5..9367a88 100644 --- a/drivers/scsi/esp_scsi.h +++ b/drivers/scsi/esp_scsi.h @@ -240,9 +240,9 @@ struct esp_cmd_priv { int num_sg; } u; - unsigned int cur_residue; + int cur_residue; struct scatterlist *cur_sg; - unsigned int tot_residue; + int tot_residue; }; #define ESP_CMD_PRIV(CMD) ((struct esp_cmd_priv *)(&(CMD)->SCp))