From: Pritthijit Nath <pritthijit.nath@icloud.com> To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org, Pritthijit Nath <pritthijit.nath@icloud.com> Subject: [PATCH] staging: wlan-ng: Fixed incorrect type warning in p80211netdev.c Date: Wed, 17 Feb 2021 21:12:55 +0530 [thread overview] Message-ID: <20210217154255.112115-1-pritthijit.nath@icloud.com> (raw) This change fixes a sparse warning "incorrect type in argument 1 (different address spaces)". Signed-off-by: Pritthijit Nath <pritthijit.nath@icloud.com> --- drivers/staging/wlan-ng/p80211netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1
WARNING: multiple messages have this Message-ID (diff)
From: Pritthijit Nath <pritthijit.nath@icloud.com> To: gregkh@linuxfoundation.org Cc: devel@driverdev.osuosl.org, Pritthijit Nath <pritthijit.nath@icloud.com>, linux-kernel@vger.kernel.org Subject: [PATCH] staging: wlan-ng: Fixed incorrect type warning in p80211netdev.c Date: Wed, 17 Feb 2021 21:12:55 +0530 [thread overview] Message-ID: <20210217154255.112115-1-pritthijit.nath@icloud.com> (raw) This change fixes a sparse warning "incorrect type in argument 1 (different address spaces)". Signed-off-by: Pritthijit Nath <pritthijit.nath@icloud.com> --- drivers/staging/wlan-ng/p80211netdev.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- 2.25.1 _______________________________________________ devel mailing list devel@linuxdriverproject.org http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
next reply other threads:[~2021-02-17 15:44 UTC|newest] Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top 2021-02-17 15:42 Pritthijit Nath [this message] 2021-02-17 15:42 ` [PATCH] staging: wlan-ng: Fixed incorrect type warning in p80211netdev.c Pritthijit Nath 2021-02-17 15:53 ` Greg KH 2021-02-17 15:53 ` Greg KH 2021-02-17 16:27 ` Pritthijit Nath 2021-02-17 16:27 ` Pritthijit Nath 2021-02-18 12:04 ` Dan Carpenter 2021-02-18 12:04 ` Dan Carpenter 2021-02-19 7:37 ` Ivan Safonov 2021-02-19 7:37 ` Ivan Safonov
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20210217154255.112115-1-pritthijit.nath@icloud.com \ --to=pritthijit.nath@icloud.com \ --cc=devel@driverdev.osuosl.org \ --cc=gregkh@linuxfoundation.org \ --cc=linux-kernel@vger.kernel.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.