Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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
case.

Signed-off-by: default avatarSujith <Sujith.Manoharan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 5cc93992
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -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)