Staging: rtl8712: fix potential null pointer dereference
authorMatteo Semenzato <mattew8898@gmail.com>
Wed, 11 Mar 2015 13:31:14 +0000 (14:31 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Mar 2015 14:48:20 +0000 (15:48 +0100)
Check if kmalloc succeded before using the pointer in memcpy.

Signed-off-by: Matteo Semenzato <mattew8898@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl871x_mlme.c