mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-21 03:33:59 +08:00
net: make ndev->irq signed for error handling
There is a bug in cpsw_probe() where we do: ndev->irq = platform_get_irq(pdev, 0); if (ndev->irq < 0) { The problem is that "ndev->irq" is unsigned so the error handling doesn't work. I have changed it to a regular int. Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
78032f9b3e
commit
df42153c59
@ -1132,7 +1132,7 @@ struct net_device {
|
||||
unsigned long mem_end; /* shared mem end */
|
||||
unsigned long mem_start; /* shared mem start */
|
||||
unsigned long base_addr; /* device I/O address */
|
||||
unsigned int irq; /* device IRQ number */
|
||||
int irq; /* device IRQ number */
|
||||
|
||||
/*
|
||||
* Some hardware also needs these fields, but they are not
|
||||
|
Loading…
Reference in New Issue
Block a user