diff options
author | Wei Yongjun <yongjun_wei@trendmicro.com.cn> | 2013-06-20 22:42:19 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-06-24 14:44:23 -0400 |
commit | 5d9e3bc21c57d600b706a31454d5cf2f68c24f53 (patch) | |
tree | 385f133053a32e9f57f8f6dce676f56bb3a4dade /drivers/net | |
parent | f56e121df34563475f71efab38287b9ac028fe8c (diff) |
ipw2200: fix error return code in ipw_load()
Fix to return -ENOMEM in the ipw_rx_queue_alloc() 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: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/ipw2x00/ipw2200.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/net/wireless/ipw2x00/ipw2200.c b/drivers/net/wireless/ipw2x00/ipw2200.c index d96257b79a84..312fa0e42e6f 100644 --- a/drivers/net/wireless/ipw2x00/ipw2200.c +++ b/drivers/net/wireless/ipw2x00/ipw2200.c | |||
@@ -3548,6 +3548,7 @@ static int ipw_load(struct ipw_priv *priv) | |||
3548 | ipw_rx_queue_reset(priv, priv->rxq); | 3548 | ipw_rx_queue_reset(priv, priv->rxq); |
3549 | if (!priv->rxq) { | 3549 | if (!priv->rxq) { |
3550 | IPW_ERROR("Unable to initialize Rx queue\n"); | 3550 | IPW_ERROR("Unable to initialize Rx queue\n"); |
3551 | rc = -ENOMEM; | ||
3551 | goto error; | 3552 | goto error; |
3552 | } | 3553 | } |
3553 | 3554 | ||