mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-16 16:54:20 +08:00
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 01b54b1451
(bna: tx rx cleanup fix).
Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
parent
ef38079401
commit
ba21fc696d
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user