staging: wlan-ng: silence incorrect type in argument 1 (different address spaces)
authorAshish Kalra <eashishkalra@gmail.com>
Sat, 1 May 2021 13:52:41 +0000 (19:22 +0530)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 May 2021 09:19:33 +0000 (11:19 +0200)
commitb1e9109aeff366d7e1934e8b3ef8025684c9f6e8
tree8b11c5c786170f0304a6cae15340f0b347dc73de
parentacbc0849bd30c28a35f8404e75c0ac5bc50fef1f
staging: wlan-ng: silence incorrect type in argument 1 (different address spaces)

Currently p80211knetdev_do_ioctl use type casting to req->data to prevent
sparse warning while calling memdup_user, instead of type casting it here,
its better to change data type for data inside p80211ioctl_req to include
__user.

Signed-off-by: Ashish Kalra <eashishkalra@gmail.com>
Link: https://lore.kernel.org/r/YI1dKdfBKaSh3J8v@ashish-NUC8i5BEH
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/wlan-ng/p80211ioctl.h
drivers/staging/wlan-ng/p80211netdev.c