Commit 7dd58748 authored by Sujith's avatar Sujith Committed by John W. Linville
Browse files

ath9k: Check for root debugfs file

Creation of the root debugfs file could have failed
for some reason, check properly before proceeding in this

Signed-off-by: default avatarSujith <>
Signed-off-by: default avatarJohn W. Linville <>
parent 5cc93992
......@@ -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),
if (!sc->debug.debugfs_phy)
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment