diff options
author | Julian Squires <[email protected]> | 2020-07-06 17:13:53 -0400 |
---|---|---|
committer | Johannes Berg <[email protected]> | 2020-07-30 10:24:01 +0200 |
commit | 4052d3d2e8f47a15053320bbcbe365d15610437d (patch) | |
tree | 7e71b33bfcd5c53830921859b0748e0da77ed67a /tools/perf/scripts/python/exported-sql-viewer.py | |
parent | 5e43540c2af0a0c0a18e39579b1ad49541f87506 (diff) |
cfg80211: check vendor command doit pointer before use
In the case where a vendor command does not implement doit, and has no
flags set, doit would not be validated and a NULL pointer dereference
would occur, for example when invoking the vendor command via iw.
I encountered this while developing new vendor commands. Perhaps in
practice it is advisable to always implement doit along with dumpit,
but it seems reasonable to me to always check doit anyway, not just
when NEED_WDEV.
Signed-off-by: Julian Squires <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Johannes Berg <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions