diff options
author | Ping-Ke Shih <[email protected]> | 2021-10-22 14:12:42 +0800 |
---|---|---|
committer | Kalle Valo <[email protected]> | 2021-10-27 10:37:59 +0300 |
commit | 5d44f0672319c19a41ff0e0e4f0d64164cf9752b (patch) | |
tree | fe954f1d06e1775e7bfaa4a4e01bbcf3dabe698a /scripts/gdb/linux/lists.py | |
parent | c6477cb237048725922f6a786f68b5232abb418f (diff) |
rtw89: Fix variable dereferenced before check 'sta'
The pointer rtwsta is dereferencing pointer sta before sta is being null
checked. Fix this by assigning sta->drv_priv to rtwsta only if sta is not
NULL, otherwise just NULL.
Fixes: e3ec7017f6a2 ("rtw89: add Realtek 802.11ax driver")
Reported-by: Colin Ian King <[email protected]>
Signed-off-by: Ping-Ke Shih <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions