Skip to content

Commit

Permalink
net/spider_net: fix error return code in spider_net_open()
Browse files Browse the repository at this point in the history
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Wei Yongjun authored and David S. Miller committed May 8, 2013
1 parent 59b626e commit 228fb08
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion drivers/net/ethernet/toshiba/spider_net.c
Original file line number Diff line number Diff line change
Expand Up @@ -1990,7 +1990,8 @@ spider_net_open(struct net_device *netdev)
goto alloc_rx_failed;

/* Allocate rx skbs */
if (spider_net_alloc_rx_skbs(card))
result = spider_net_alloc_rx_skbs(card);
if (result)
goto alloc_skbs_failed;

spider_net_set_multi(netdev);
Expand Down

0 comments on commit 228fb08

Please sign in to comment.