projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
32b92f4
)
ath5k: unmap io memory on probe failure
author
Jonathan Bither
<
[email protected]
>
Thu, 12 Apr 2012 11:03:09 +0000
(07:03 -0400)
committer
John W. Linville
<
[email protected]
>
Fri, 13 Apr 2012 18:05:36 +0000
(14:05 -0400)
Signed-off-by: Jonathan Bither <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ath5k/ahb.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath5k/ahb.c
b/drivers/net/wireless/ath/ath5k/ahb.c
index 47b6c35077d623589b377894c439fdbebfa7293b..8c50d9d19d786e5f0e28ef78bed157455cfcf705 100644
(file)
--- a/
drivers/net/wireless/ath/ath5k/ahb.c
+++ b/
drivers/net/wireless/ath/ath5k/ahb.c
@@
-120,7
+120,7
@@
static int ath_ahb_probe(struct platform_device *pdev)
if (res == NULL) {
dev_err(&pdev->dev, "no IRQ resource found\n");
ret = -ENXIO;
- goto err_
out
;
+ goto err_
iounmap
;
}
irq = res->start;
@@
-129,7
+129,7
@@
static int ath_ahb_probe(struct platform_device *pdev)
if (hw == NULL) {
dev_err(&pdev->dev, "no memory for ieee80211_hw\n");
ret = -ENOMEM;
- goto err_
out
;
+ goto err_
iounmap
;
}
ah = hw->priv;
@@
-186,6
+186,8
@@
static int ath_ahb_probe(struct platform_device *pdev)
err_free_hw:
ieee80211_free_hw(hw);
platform_set_drvdata(pdev, NULL);
+ err_iounmap:
+ iounmap(mem);
err_out:
return ret;
}