]> git.baikalelectronics.ru Git - kernel.git/commit
ath10k: fix debugfs_create_dir() checking
authorMichal Kazior <michal.kazior@tieto.com>
Thu, 4 Sep 2014 10:36:45 +0000 (12:36 +0200)
committerKalle Valo <kvalo@qca.qualcomm.com>
Thu, 11 Sep 2014 20:44:44 +0000 (23:44 +0300)
commitafc25a50c52bbea86aebb5a64a2184ecb65f3102
tree00062bdb2c54aa6d66b6550bab6e1ae879105c77
parent544047b1ccbec5bd3658ebb11351da4920b67bb6
ath10k: fix debugfs_create_dir() checking

The function may return an -ENODEV if debugfs is
disabled in kernel. This should originally be
guarded by ath10k's Kconfig but it still makes
sense to check for the non-NULL errno return
value.

Reported-by: Matteo Croce <matteo@openwrt.org>
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/debug.c