staging: r8712u: Check pointer before use
authorLarry Finger <Larry.Finger@lwfinger.net>
Sat, 4 Jun 2016 01:17:35 +0000 (20:17 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 21 Aug 2016 16:28:49 +0000 (18:28 +0200)
commit74a3b060bc29851d7caf42b9c8c3c1129fd50553
tree58f71f77e57218524430993726f49f798aeebf6b
parentd25f658df2664d24b0a0af5578fd1744fa56e9aa
staging: r8712u: Check pointer before use

Routine r8712_usb_read_port() dereferences "precvbuf" before testing it
for NULL.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/usb_ops_linux.c