提交 582fb6c0 编写于 作者: D David S. Miller 提交者: James Bottomley

[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: NDavid S. Miller <davem@davemloft.net>
Signed-off-by: NJames Bottomley <James.Bottomley@HansenPartnership.com>
上级 e19166d5
...@@ -240,9 +240,9 @@ struct esp_cmd_priv { ...@@ -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))
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册