diff options
| author | Connor Kuehl <[email protected]> | 2019-09-26 08:03:17 -0700 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2019-09-30 21:58:02 +0200 |
| commit | 228241944a48113470d3c3b46c88ba7fbe0a274b (patch) | |
| tree | f768c9bea73cddb0f204a9fd5f0abf31bad45898 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | c47be36db3283bdcc071b55ccbb366fba1f57b2f (diff) | |
staging: rtl8188eu: fix possible null dereference
Inside a nested 'else' block at the beginning of this function is a
call that assigns 'psta' to the return value of 'rtw_get_stainfo()'.
If 'rtw_get_stainfo()' returns NULL and the flow of control reaches
the 'else if' where 'psta' is dereferenced, then we will dereference
a NULL pointer.
Fix this by checking if 'psta' is not NULL before reading its
'psta->qos_option' data member.
Addresses-Coverity: ("Dereference null return value")
Signed-off-by: Connor Kuehl <[email protected]>
Acked-by: Larry Finger <[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/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions