summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorConnor Kuehl <connor.kuehl@canonical.com>2019-09-26 08:03:17 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-01-04 13:34:04 +0100
commit15a99cbc09f1e6764aec1d22f68ef2d122dbad22 (patch)
tree28510a2b451893fc0df88fb97042a11cdf286991 /include
parent12b7e214561833bed54e2443bbb4cb6d7c83577f (diff)
staging: rtl8188eu: fix possible null dereference
[ Upstream commit 228241944a48113470d3c3b46c88ba7fbe0a274b ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions