[SCSI] esp_scsi: Make cur_residue and tot_residue signed.
authorDavid S. Miller <davem@davemloft.net>
Sat, 19 Apr 2008 14:16:38 +0000 (09:16 -0500)
committerJames Bottomley <James.Bottomley@HansenPartnership.com>
Sun, 27 Apr 2008 15:03:16 +0000 (10:03 -0500)
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 <davem@davemloft.net>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
drivers/scsi/esp_scsi.h

index d5576d54ce768f6e801e174c29f69901f36bc111..9367a88d39746f5d3c9ec99477118a5dc6d5ee14 100644 (file)
@@ -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))