diff options
| author | Tuo Li <[email protected]> | 2021-08-10 20:11:35 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-08-11 09:43:44 +0200 |
| commit | 25ee7e89d45debc195cc8cec2483e07bbccd1472 (patch) | |
| tree | 7022565f7d9207594848a172508a42c505bb8c9b /tools/perf/scripts/python/flamegraph.py | |
| parent | 3a330ece235e8d2647d7e9e287e226d77b7cae9f (diff) | |
staging: rtl8192e: rtl_core: Fix possible null-pointer dereference in _rtl92e_pci_disconnect()
The variable dev is checked in:
if (dev)
This indicates that it can be NULL. If so, a null-pointer dereference will
occur:
priv = rtllib_priv(dev);
However, the value of priv is not used in the remaining part of this
function. Thus the else-branch can be removed to fix this posible
null-pointer dereference.
Reported-by: TOTE Robot <[email protected]>
Reviewed-by: Dan Carpenter <[email protected]>
Signed-off-by: Tuo Li <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/flamegraph.py')
0 files changed, 0 insertions, 0 deletions