]> git.karo-electronics.de Git - linux-beck.git/commit
staging: rtl8192u: r8192U_core: Fix driver_info dereference as a null pointer
authorRickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Sat, 7 Feb 2015 14:56:10 +0000 (15:56 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 7 Mar 2015 00:55:24 +0000 (16:55 -0800)
commit535f2e7df820d84fd8a4395bb52f19846f6a2290
treebbe3128e9cc7fa34aa221e0b2196350de2bba765
parent1b08872e59309458a54ed00cded95eeda43426e5
staging: rtl8192u: r8192U_core: Fix driver_info dereference as a null pointer

Fix possible use of use of driver_info as a null pointer in
query_rxdesc_status()
This could happen if stats->RxIs40MHzPacket still has the
default value of zero.

Signed-off-by: Rickard Strandqvist <rickard_strandqvist@spectrumdigital.se>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_core.c