diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-03-22 03:17:47 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2013-03-22 10:23:42 -0400 |
commit | 43d6869037d6fa8f92a7a7e6df3b48147c8a3ef9 (patch) | |
tree | e7ff88d14a39c712afc10c52fa3d040cae01096c /drivers/net/ethernet/s6gmac.c | |
parent | d6a8c36dd6f6f06f046e5c61d3fb39b777c3bdc6 (diff) | |
download | linux-43d6869037d6fa8f92a7a7e6df3b48147c8a3ef9.tar.bz2 |
s6gmac: fix error return code in s6gmac_probe()
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>
Diffstat (limited to 'drivers/net/ethernet/s6gmac.c')
-rw-r--r-- | drivers/net/ethernet/s6gmac.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/ethernet/s6gmac.c b/drivers/net/ethernet/s6gmac.c index cd5f4e21cede..b6739afeaca1 100644 --- 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"; |