staging: r8192U: Fix check pointer after usage problem
authorLarry Finger <Larry.Finger@lwfinger.net>
Tue, 5 Jan 2016 02:30:58 +0000 (20:30 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 8 Feb 2016 04:17:18 +0000 (20:17 -0800)
commitd0aaa57df2d8f5d355c64935dcff58cd4ab9fe2f
treed3623b8d353f8a1d1d2b37061e44b76817234f04
parentf06104fb322524eb8102c49c1fd916d901a81ee3
staging: r8192U: Fix check pointer after usage problem

In routine rtl8192_tx_isr(), pointer skb is dereferenced before it is
checked for NULL. This patch has only been compile-tested, as I do not
have the hardware. This problem was reported at
https://bugzilla.kernel.org/show_bug.cgi?id=109951.

Fixes: bugzilla.kernel.org: #109951
Reported-by: Yong Shi <brave_shi@163.com>
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Cc: Yong Shi <brave_shi@163.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_core.c