linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] staging: vc04_services: Fix unportable cast in vchiq_copy_from_user
@ 2016-10-24  5:29 mzoran
  2016-10-24 10:54 ` Dan Carpenter
  2016-10-24 13:23 ` Greg KH
  0 siblings, 2 replies; 12+ messages in thread
From: mzoran @ 2016-10-24  5:29 UTC (permalink / raw)
  To: gregkh; +Cc: mzoran, daniels, eric, noralf, popcornmix, devel, linux-kernel

From: Michael Zoran <mzoran@crowfest.net>

Signed-off-by: Michael Zoran <mzoran@crowfest.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

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2016-10-24 15:46 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-10-24  5:29 [PATCH 1/2] staging: vc04_services: Fix unportable cast in vchiq_copy_from_user mzoran
2016-10-24 10:54 ` Dan Carpenter
2016-10-24 11:09   ` Michael Zoran
2016-10-24 11:36     ` Dan Carpenter
2016-10-24 11:39       ` Michael Zoran
2016-10-24 11:58         ` Dan Carpenter
2016-10-24 12:12           ` Michael Zoran
2016-10-24 12:30             ` Dan Carpenter
2016-10-24 13:23 ` Greg KH
2016-10-24 13:56   ` Michael Zoran
2016-10-24 14:46     ` Dan Carpenter
2016-10-24 15:13       ` Michael Zoran

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).