Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 582fb6c0 authored by David S. Miller's avatar David S. Miller Committed by James Bottomley
Browse files

[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: default avatarDavid S. Miller <davem@davemloft.net>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
parent e19166d5
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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))