]> git.baikalelectronics.ru Git - kernel.git/commit
staging: wilc1000: use kmemdup in host_int_add_rx_gtk
authorChaehyun Lim <chaehyun.lim@gmail.com>
Sun, 8 Nov 2015 07:49:16 +0000 (16:49 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 18 Dec 2015 22:14:03 +0000 (14:14 -0800)
commit63728bf4e5cc21067a32d4562fc52217277fde37
tree1d3f144e82e839edb78bc63fdb4be47d4bc3d654
parente966da554f120f0692c0cfee7fa584a9c8c5eedd
staging: wilc1000: use kmemdup in host_int_add_rx_gtk

This patch changes kmalloc followed by memcpy to kmemdup.
The error checking is also added when kmemdup is failed.

Signed-off-by: Chaehyun Lim <chaehyun.lim@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/host_interface.c