mirror of
https://github.com/torvalds/linux.git
synced 2024-12-03 17:41:22 +00:00
smsc95xx: signedness bug in get_regs()
"retval" has to be a signed integer for the error handling to work. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
064bff1c9f
commit
d348446b88
@ -589,7 +589,8 @@ smsc95xx_ethtool_getregs(struct net_device *netdev, struct ethtool_regs *regs,
|
||||
void *buf)
|
||||
{
|
||||
struct usbnet *dev = netdev_priv(netdev);
|
||||
unsigned int i, j, retval;
|
||||
unsigned int i, j;
|
||||
int retval;
|
||||
u32 *data = buf;
|
||||
|
||||
retval = smsc95xx_read_reg(dev, ID_REV, ®s->version);
|
||||
|
Loading…
Reference in New Issue
Block a user