staging: wilc1000: use memdup_user
authorHari Prasath Gujulan Elango <hgujulan@visteon.com>
Thu, 11 Jun 2015 07:48:13 +0000 (07:48 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Jun 2015 16:11:32 +0000 (09:11 -0700)
This patch replaces the kmalloc followed by copy_from_user by the
wrapper routine memdup_user.

Signed-off-by: Hari Prasath Gujulan Elango <hgujulan@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wilc1000/linux_wlan.c

Simple merge