projects
/
profile
/
common
/
kernel-common.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d6a8c36
)
s6gmac: fix error return code in s6gmac_probe()
author
Wei Yongjun
<yongjun_wei@trendmicro.com.cn>
Fri, 22 Mar 2013 03:17:47 +0000
(
03:17
+0000)
committer
David S. Miller
<davem@davemloft.net>
Fri, 22 Mar 2013 14:23:42 +0000
(10:23 -0400)
Fix to return a negative error code from the error handling
case instead of 0, as returned elsewhere in this function.
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/s6gmac.c
patch
|
blob
|
history
diff --git
a/drivers/net/ethernet/s6gmac.c
b/drivers/net/ethernet/s6gmac.c
index
cd5f4e2
..
b6739af
100644
(file)
--- a/
drivers/net/ethernet/s6gmac.c
+++ b/
drivers/net/ethernet/s6gmac.c
@@
-998,6
+998,7
@@
static int s6gmac_probe(struct platform_device *pdev)
mb = mdiobus_alloc();
if (!mb) {
printk(KERN_ERR DRV_PRMT "error allocating mii bus\n");
+ res = -ENOMEM;
goto errmii;
}
mb->name = "s6gmac_mii";