staging: wilc1000: use kmemdup in host_int_add_station
authorChaehyun Lim <chaehyun.lim@gmail.com>
Fri, 6 Nov 2015 10:11:20 +0000 (19:11 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 16 Nov 2015 04:02:47 +0000 (20:02 -0800)
commit7897bd00f6b5e69443ceffc7900faaafc23455b0
treeb78726f099a22309e6978e040e228edeac8c99c7
parent773e02e696b1926d85627a901375453d46d12262
staging: wilc1000: use kmemdup in host_int_add_station

This patch replaces kmalloc followed by memcpy with kmemdup.

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