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)
commit4a01f1c3abd6aa65bef32d14ba7b37a237c894d4
tree4d7fa1756aca55c20b68dccb9848d6334d7637d1
parent2235fb69ef09e0bc0f8b8fb94d1375bdf9d78bf3
staging: wilc1000: use memdup_user

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