diff options
author | David S. Miller <davem@davemloft.net> | 2008-04-19 10:16:38 -0400 |
---|---|---|
committer | James Bottomley <James.Bottomley@HansenPartnership.com> | 2008-04-27 11:03:16 -0400 |
commit | 582fb6c03a0e89d05e4efa8a3e4bd09d0942dadc (patch) | |
tree | f3258dad0ba51b4b7621a5c17bb8f1fb9b2437ce /drivers | |
parent | e19166d5df10be0ea404c4e346cf6be93bfb1d63 (diff) |
[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 <davem@davemloft.net>
Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com>
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/scsi/esp_scsi.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/scsi/esp_scsi.h b/drivers/scsi/esp_scsi.h index d5576d54ce76..9367a88d3974 100644 --- a/drivers/scsi/esp_scsi.h +++ b/drivers/scsi/esp_scsi.h | |||
@@ -240,9 +240,9 @@ struct esp_cmd_priv { | |||
240 | int num_sg; | 240 | int num_sg; |
241 | } u; | 241 | } u; |
242 | 242 | ||
243 | unsigned int cur_residue; | 243 | int cur_residue; |
244 | struct scatterlist *cur_sg; | 244 | struct scatterlist *cur_sg; |
245 | unsigned int tot_residue; | 245 | int tot_residue; |
246 | }; | 246 | }; |
247 | #define ESP_CMD_PRIV(CMD) ((struct esp_cmd_priv *)(&(CMD)->SCp)) | 247 | #define ESP_CMD_PRIV(CMD) ((struct esp_cmd_priv *)(&(CMD)->SCp)) |
248 | 248 | ||