projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
518a7cb
)
net: hisilicon: fix handling platform_get_irq result
author
Andrzej Hajda
<a.hajda@samsung.com>
Thu, 24 Sep 2015 14:00:15 +0000
(16:00 +0200)
committer
David S. Miller
<davem@davemloft.net>
Sun, 27 Sep 2015 05:46:45 +0000
(22:46 -0700)
The function can return negative value.
The problem has been detected using proposed semantic patch
scripts/coccinelle/tests/assign_signed_to_unsigned.cocci [1].
[1]: http://permalink.gmane.org/gmane.linux.kernel/
2046107
Signed-off-by: Andrzej Hajda <a.hajda@samsung.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/hisilicon/hip04_eth.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/hisilicon/hip04_eth.c
b/drivers/net/ethernet/hisilicon/hip04_eth.c
index cc2d8b4b18e3e2a99ef303b76809545496089787..253f8ed0537a058778fd08b2c5a0747f53d7eca4 100644
(file)
--- a/
drivers/net/ethernet/hisilicon/hip04_eth.c
+++ b/
drivers/net/ethernet/hisilicon/hip04_eth.c
@@
-816,7
+816,7
@@
static int hip04_mac_probe(struct platform_device *pdev)
struct net_device *ndev;
struct hip04_priv *priv;
struct resource *res;
-
unsigned
int irq;
+ int irq;
int ret;
ndev = alloc_etherdev(sizeof(struct hip04_priv));