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)
commit66faa441a6f5753dd3e7add3e1640819ba9ec1c2
tree403e4df6cb43ef4c84227f1232260e553a64d4f8
parent819ef638151f89199c6c3ce42418f40be90ff23a
Staging: rtl8712: fix potential null pointer dereference

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