staging: wilc1000: use kmemdup in wilc_edit_station
authorChaehyun Lim <chaehyun.lim@gmail.com>
Sun, 3 Jan 2016 08:35:47 +0000 (17:35 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 3 Feb 2016 23:11:00 +0000 (15:11 -0800)
commit1ae82d1ab0adf01fc3b049d375ccdf9c878085e0
treecaa6b32834711e5205ea434b5dcf1c14318fe4d5
parent785c0712048afa9528a48970eec1863cf71d4ffc
staging: wilc1000: use kmemdup in wilc_edit_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