Commit 5bc510b2 authored by Pritthijit Nath's avatar Pritthijit Nath Committed by Greg Kroah-Hartman

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: default avatarIvan Safonov <insafonov@gmail.com>
Signed-off-by: default avatarPritthijit Nath <pritthijit.nath@icloud.com>
Link: https://lore.kernel.org/r/20210217154255.112115-1-pritthijit.nath@icloud.comSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent ad0bd9ff
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment