Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1506939

[PATCH 1/2] staging: vc04_services: Fix unportable cast in vchiq_copy_from_user

From mzoran@crowfest.net
Newsgroups linux.kernel
Subject [PATCH 1/2] staging: vc04_services: Fix unportable cast in vchiq_copy_from_user
Date 2016-10-24 09:00 +0200
Message-ID <svHoK-40i-3@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


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

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH 1/2] staging: vc04_services: Fix unportable cast in vchiq_copy_from_user mzoran@crowfest.net - 2016-10-24 09:00 +0200
  Re: [PATCH 1/2] staging: vc04_services: Fix unportable cast in  vchiq_copy_from_user Dan Carpenter <dan.carpenter@oracle.com> - 2016-10-24 13:00 +0200
    Re: [PATCH 1/2] staging: vc04_services: Fix unportable cast in  vchiq_copy_from_user Michael Zoran <mzoran@crowfest.net> - 2016-10-24 13:10 +0200
      Re: [PATCH 1/2] staging: vc04_services: Fix unportable cast in  vchiq_copy_from_user Dan Carpenter <dan.carpenter@oracle.com> - 2016-10-24 13:40 +0200
        Re: [PATCH 1/2] staging: vc04_services: Fix unportable cast in  vchiq_copy_from_user Michael Zoran <mzoran@crowfest.net> - 2016-10-24 13:50 +0200
          Re: [PATCH 1/2] staging: vc04_services: Fix unportable cast in  vchiq_copy_from_user Dan Carpenter <dan.carpenter@oracle.com> - 2016-10-24 14:00 +0200
            Re: [PATCH 1/2] staging: vc04_services: Fix unportable cast in  vchiq_copy_from_user Michael Zoran <mzoran@crowfest.net> - 2016-10-24 14:20 +0200
              Re: [PATCH 1/2] staging: vc04_services: Fix unportable cast in  vchiq_copy_from_user Dan Carpenter <dan.carpenter@oracle.com> - 2016-10-24 14:40 +0200
  Re: [PATCH 1/2] staging: vc04_services: Fix unportable cast in  vchiq_copy_from_user Greg KH <gregkh@linuxfoundation.org> - 2016-10-24 15:30 +0200
    Re: [PATCH 1/2] staging: vc04_services: Fix unportable cast in  vchiq_copy_from_user Michael Zoran <mzoran@crowfest.net> - 2016-10-24 16:30 +0200
      Re: [PATCH 1/2] staging: vc04_services: Fix unportable cast in  vchiq_copy_from_user Dan Carpenter <dan.carpenter@oracle.com> - 2016-10-24 16:50 +0200
        Re: [PATCH 1/2] staging: vc04_services: Fix unportable cast in  vchiq_copy_from_user Michael Zoran <mzoran@crowfest.net> - 2016-10-24 17:50 +0200

csiph-web