summaryrefslogtreecommitdiffstats
path: root/include/linux/netdevice.h
diff options
context:
space:
mode:
authorDan Carpenter2013-11-07 08:48:49 +0100
committerDavid S. Miller2013-11-08 01:11:13 +0100
commitdf42153c59a38a65c6f7440d5c70d87d1c24438d (patch)
tree3d928a77844d6c81e429e4cb5bc50097587ab805 /include/linux/netdevice.h
parent6lowpan: release device on error path (diff)
downloadkernel-qcow2-linux-df42153c59a38a65c6f7440d5c70d87d1c24438d.tar.gz
kernel-qcow2-linux-df42153c59a38a65c6f7440d5c70d87d1c24438d.tar.xz
kernel-qcow2-linux-df42153c59a38a65c6f7440d5c70d87d1c24438d.zip
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>
Diffstat (limited to 'include/linux/netdevice.h')
-rw-r--r--include/linux/netdevice.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/netdevice.h b/include/linux/netdevice.h
index e6353cafbf05..b6f6efbcfc74 100644
--- a/include/linux/netdevice.h
+++ b/include/linux/netdevice.h
@@ -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