wl12xx: fix illegal memset if debugfs is not enabled
If we try to reset the debugfs statistics when debugfs is not configured in the kernel, we're memset an illegal pointer, because it has never been allocated. So check whether we have debugfs enabled by looking into the wl->rootdir before trying to reset the fw_stats struct. Reported-by: NJoerie de Gram <j.de.gram@gmail.com> Signed-off-by: NLuciano Coelho <luciano.coelho@nokia.com>
Showing
想要评论请 注册 或 登录