diff options
| author | Colin Ian King <[email protected]> | 2021-03-24 15:21:35 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2021-03-26 14:58:57 +0100 |
| commit | 0933e51a0b3ce66eb2cf21b0dda265655fa43f53 (patch) | |
| tree | 387738b54cb250051621466b9990db8cf8275c9b /tools/perf/scripts/python/export-to-postgresql.py | |
| parent | d8827ae8e22badd339e1b6225c03a1e417765a3d (diff) | |
staging: rtl8188eu: Fix null pointer dereference on free_netdev call
An unregister_netdev call checks if pnetdev is null, hence a later
call to free_netdev can potentially be passing a null pointer, causing
a null pointer dereference. Avoid this by adding a null pointer check
on pnetdev before calling free_netdev.
Fixes: 1665c8fdffbb ("staging: rtl8188eu: use netdev routines for private data")
Reviewed-by: Martin Kaiser <[email protected]>
Signed-off-by: Colin Ian King <[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/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions