linux/drivers/staging/rtl8188eu
Connor Kuehl 228241944a 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 <connor.kuehl@canonical.com>
Acked-by: Larry Finger <Larry.Finger@lwfinger.net>
Link: https://lore.kernel.org/r/20190926150317.5894-1-connor.kuehl@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2019-09-30 21:58:02 +02:00
..
core staging: rtl8188eu: fix possible null dereference 2019-09-30 21:58:02 +02:00
hal staging: rtl8188eu: remove dead code/vestigial do..while loop 2019-09-30 21:58:01 +02:00
include staging: rtl8188eu: Replace function rtw_alloc_network() 2019-07-22 07:34:15 +02:00
os_dep staging: r8188eu: use skb_put_data instead of skb_put/memcpy pair 2019-09-03 09:39:53 +02:00
Kconfig staging: rtl8188eu: use help instead of ---help--- in Kconfig 2019-05-20 10:49:07 +02:00
Makefile staging: rtl8188eu: rename odm_HWConfig 2018-10-02 15:20:40 -07:00
TODO staging: rtl8188eu: Fix spelling mistake 2018-08-27 19:29:39 +02:00