projects
/
platform
/
kernel
/
linux-exynos.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5cc9399
)
ath9k: Check for root debugfs file
author
Sujith
<Sujith.Manoharan@atheros.com>
Mon, 30 Mar 2009 09:58:42 +0000
(15:28 +0530)
committer
John W. Linville
<linville@tuxdriver.com>
Wed, 22 Apr 2009 20:54:34 +0000
(16:54 -0400)
Creation of the root debugfs file could have failed
for some reason, check properly before proceeding in this
case.
Signed-off-by: Sujith <Sujith.Manoharan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath9k/debug.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath9k/debug.c
b/drivers/net/wireless/ath9k/debug.c
index
fdf9528
..
97df20c
100644
(file)
--- a/
drivers/net/wireless/ath9k/debug.c
+++ b/
drivers/net/wireless/ath9k/debug.c
@@
-498,6
+498,9
@@
int ath9k_init_debug(struct ath_softc *sc)
{
sc->debug.debug_mask = ath9k_debug;
+ if (!ath9k_debugfs_root)
+ return -ENOENT;
+
sc->debug.debugfs_phy = debugfs_create_dir(wiphy_name(sc->hw->wiphy),
ath9k_debugfs_root);
if (!sc->debug.debugfs_phy)