diff options
| author | Aditya Pakki <pakki001@umn.edu> | 2019-12-15 09:34:08 -0600 |
|---|---|---|
| committer | Johannes Berg <johannes.berg@intel.com> | 2019-12-16 10:15:49 +0100 |
| commit | 6fc232db9e8cd50b9b83534de9cd91ace711b2d7 (patch) | |
| tree | bd8372886f47dbe86bd837f5ad794d2d545544f2 /tools/perf/scripts/python | |
| parent | mac80211: Turn AQL into an NL80211_EXT_FEATURE (diff) | |
| download | linux-6fc232db9e8cd50b9b83534de9cd91ace711b2d7.tar.gz linux-6fc232db9e8cd50b9b83534de9cd91ace711b2d7.zip | |
rfkill: Fix incorrect check to avoid NULL pointer dereference
In rfkill_register, the struct rfkill pointer is first derefernced
and then checked for NULL. This patch removes the BUG_ON and returns
an error to the caller in case rfkill is NULL.
Signed-off-by: Aditya Pakki <pakki001@umn.edu>
Link: https://lore.kernel.org/r/20191215153409.21696-1-pakki001@umn.edu
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
