Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757165AbcJXGuV (ORCPT ); Mon, 24 Oct 2016 02:50:21 -0400 Received: from ec2-52-42-241-221.us-west-2.compute.amazonaws.com ([52.42.241.221]:54114 "EHLO gw.crowfest.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1754289AbcJXGuT (ORCPT ); Mon, 24 Oct 2016 02:50:19 -0400 X-Greylist: delayed 4865 seconds by postgrey-1.27 at vger.kernel.org; Mon, 24 Oct 2016 02:50:19 EDT From: mzoran@crowfest.net To: gregkh@linuxfoundation.org Cc: mzoran@crowfest.net, daniels@collabora.com, eric@anholt.net, noralf@tronnes.org, popcornmix@gmail.com, devel@driverdev.osuosl.org, linux-kernel@vger.kernel.org Subject: [PATCH 1/2] staging: vc04_services: Fix unportable cast in vchiq_copy_from_user Date: Sun, 23 Oct 2016 22:29:18 -0700 Message-Id: <20161024052918.28205-1-mzoran@crowfest.net> X-Mailer: git-send-email 2.9.3 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 842 Lines: 22 From: Michael Zoran Signed-off-by: Michael Zoran --- 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