[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <20161024052918.28205-1-mzoran@crowfest.net>
Date: Sun, 23 Oct 2016 22:29:18 -0700
From: mzoran@...wfest.net
To: gregkh@...uxfoundation.org
Cc: mzoran@...wfest.net, daniels@...labora.com, eric@...olt.net,
noralf@...nnes.org, popcornmix@...il.com,
devel@...verdev.osuosl.org, linux-kernel@...r.kernel.org
Subject: [PATCH 1/2] staging: vc04_services: Fix unportable cast in vchiq_copy_from_user
From: Michael Zoran <mzoran@...wfest.net>
Signed-off-by: Michael Zoran <mzoran@...wfest.net>
---
drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c
index 32d12e6..98c6819 100644
--- a/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c
+++ b/drivers/staging/vc04_services/interface/vchiq_arm/vchiq_2835_arm.c
@@ -219,7 +219,7 @@ remote_event_signal(REMOTE_EVENT_T *event)
int
vchiq_copy_from_user(void *dst, const void *src, int size)
{
- if ((uint32_t)src < TASK_SIZE) {
+ if ((unsigned long)src < TASK_SIZE) {
return copy_from_user(dst, src, size);
} else {
memcpy(dst, src, size);
--
2.9.3
Powered by blists - more mailing lists