mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-01-17 02:15:57 +00:00
[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>
This commit is contained in:
parent
e19166d5df
commit
582fb6c03a
@ -240,9 +240,9 @@ struct esp_cmd_priv {
|
|||||||
int num_sg;
|
int num_sg;
|
||||||
} u;
|
} u;
|
||||||
|
|
||||||
unsigned int cur_residue;
|
int cur_residue;
|
||||||
struct scatterlist *cur_sg;
|
struct scatterlist *cur_sg;
|
||||||
unsigned int tot_residue;
|
int tot_residue;
|
||||||
};
|
};
|
||||||
#define ESP_CMD_PRIV(CMD) ((struct esp_cmd_priv *)(&(CMD)->SCp))
|
#define ESP_CMD_PRIV(CMD) ((struct esp_cmd_priv *)(&(CMD)->SCp))
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user