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

Skip to content
Commit 43a598d5 authored by Luciano Coelho's avatar Luciano Coelho
Browse files

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: default avatarJoerie de Gram <j.de.gram@gmail.com>
Signed-off-by: default avatarLuciano Coelho <luciano.coelho@nokia.com>
parent d60080ae
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment