aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/wlan-ng
diff options
context:
space:
mode:
authorPritthijit Nath <pritthijit.nath@icloud.com>2021-02-17 21:12:55 +0530
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2021-03-10 09:25:24 +0100
commit5bc510b23e78baedc09fc471fcb3618639539c84 (patch)
tree7970ed1d5a4c0a7f1ce5f92adea11616148e0c56 /drivers/staging/wlan-ng
parentStaging: mt7621-pci: fixed a blank line coding style issue (diff)
downloadlinux-dev-5bc510b23e78baedc09fc471fcb3618639539c84.tar.xz
linux-dev-5bc510b23e78baedc09fc471fcb3618639539c84.zip
staging: wlan-ng: Fixed incorrect type warning in p80211netdev.c
This change fixes a sparse warning "incorrect type in argument 1 (different address spaces)". Reviewed-by: Ivan Safonov <insafonov@gmail.com> Signed-off-by: Pritthijit Nath <pritthijit.nath@icloud.com> Link: https://lore.kernel.org/r/20210217154255.112115-1-pritthijit.nath@icloud.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/wlan-ng')
-rw-r--r--drivers/staging/wlan-ng/p80211netdev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/wlan-ng/p80211netdev.c b/drivers/staging/wlan-ng/p80211netdev.c
index 6f9666dc0277..70570e8a5ad2 100644
--- a/drivers/staging/wlan-ng/p80211netdev.c
+++ b/drivers/staging/wlan-ng/p80211netdev.c
@@ -569,7 +569,7 @@ static int p80211knetdev_do_ioctl(struct net_device *dev,
goto bail;
}
- msgbuf = memdup_user(req->data, req->len);
+ msgbuf = memdup_user((void __user *)req->data, req->len);
if (IS_ERR(msgbuf)) {
result = PTR_ERR(msgbuf);
goto bail;