summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>2013-05-13 04:26:06 +0000
committerDavid S. Miller <davem@davemloft.net>2013-05-13 12:54:38 -0700
commitba21fc696dd28ea7a5880345faf0168619a478d2 (patch)
tree3931fb98a23318f8cb96a050fee60cd00c5e88f1
parentef38079401c03fab7e0eb72085635c841b9b8ee7 (diff)
downloadtalos-obmc-linux-ba21fc696dd28ea7a5880345faf0168619a478d2.tar.gz
talos-obmc-linux-ba21fc696dd28ea7a5880345faf0168619a478d2.zip
bna: add missing iounmap() on error in bnad_init()
Add the missing iounmap() before return from bnad_init() in the error handling case. Introduced by commit 01b54b1451853593739816a392485c4e2bee7dda (bna: tx rx cleanup fix). Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn> Signed-off-by: David S. Miller <davem@davemloft.net>
-rw-r--r--drivers/net/ethernet/brocade/bna/bnad.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/drivers/net/ethernet/brocade/bna/bnad.c b/drivers/net/ethernet/brocade/bna/bnad.c
index ce4a030d3d0c..07f7ef05c3f2 100644
--- a/drivers/net/ethernet/brocade/bna/bnad.c
+++ b/drivers/net/ethernet/brocade/bna/bnad.c
@@ -3236,9 +3236,10 @@ bnad_init(struct bnad *bnad,
sprintf(bnad->wq_name, "%s_wq_%d", BNAD_NAME, bnad->id);
bnad->work_q = create_singlethread_workqueue(bnad->wq_name);
-
- if (!bnad->work_q)
+ if (!bnad->work_q) {
+ iounmap(bnad->bar0);
return -ENOMEM;
+ }
return 0;
}
OpenPOWER on IntegriCloud