hostap: Use memdup_user() to reuse code
authorRajan Vaja <rajan.vaja@gmail.com>
Thu, 21 Jul 2016 08:14:44 +0000 (13:44 +0530)
committerKalle Valo <kvalo@codeaurora.org>
Sat, 3 Sep 2016 09:54:53 +0000 (12:54 +0300)
commit8432ebd66205ef1e088005ae3738600dedc7d9b4
tree0fe3ad22efd886aaf8392d937c8182d4a508c6c9
parentc2da9133455d1e01941f428fb9c497f1497bce7b
hostap: Use memdup_user() to reuse code

Fix coccicheck warning which recommends to
use memdup_user() instead of reimplementing its
code.

This patch fixes below coccicheck warnings:

drivers/net/wireless/intersil/hostap/hostap_ioctl.c:3044:9-16: WARNING
opportunity for memdup_user
drivers/net/wireless/intersil/hostap/hostap_ioctl.c:3806:9-16: WARNING
opportunity for memdup_user

Signed-off-by: Rajan Vaja <rajan.vaja@gmail.com>
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/intersil/hostap/hostap_ioctl.c