]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit5f668a1f27d6731c0b59d9b6650b1f17a1ff9dd3
tree4d7fa1756aca55c20b68dccb9848d6334d7637d1
parentcfb71a65fffe054456e7dc2c8920a9995247364a
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