Skip to content

Commit

Permalink
[SCSI] esp_scsi: Make cur_residue and tot_residue signed.
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
David S. Miller authored and James Bottomley committed Apr 27, 2008
1 parent e19166d commit 582fb6c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/scsi/esp_scsi.h
Original file line number Diff line number Diff line change
Expand Up @@ -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))

Expand Down

0 comments on commit 582fb6c

Please sign in to comment.