summaryrefslogtreecommitdiffstats
path: root/drivers
diff options
context:
space:
mode:
authorDavid Kershner <david.kershner@unisys.com>2016-03-03 13:00:38 -0500
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2016-03-10 19:26:05 -0800
commit2500276efe1c3a1c0a24e0e5bab4b7902a7cff50 (patch)
tree414c8b887ec40918dd0bbec4b6a1fa97ba2a5d4d /drivers
parent50aefc19c7696973ea6d2cea3c2620b1217a6756 (diff)
downloadlinux-2500276efe1c3a1c0a24e0e5bab4b7902a7cff50.tar.bz2
staging: unisys: visorbus: variable adjustment should be a u64
This patch fixes the smatch error: drivers/staging/unisys/visorbus/visorchipset.c:2217 visorchipset_ioctl() warn: user controlled 'adjustment' cast to postive rl = 's64min-s64max' This is because we read a s64 and pass it to a function as u64. Signed-off-by: David Kershner <david.kershner@unisys.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers')
-rw-r--r--drivers/staging/unisys/visorbus/visorchipset.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/unisys/visorbus/visorchipset.c b/drivers/staging/unisys/visorbus/visorchipset.c
index 55158455c534..5fbda7b218c7 100644
--- a/drivers/staging/unisys/visorbus/visorchipset.c
+++ b/drivers/staging/unisys/visorbus/visorchipset.c
@@ -2248,7 +2248,7 @@ static inline int issue_vmcall_update_physical_time(u64 adjustment)
static long visorchipset_ioctl(struct file *file, unsigned int cmd,
unsigned long arg)
{
- s64 adjustment;
+ u64 adjustment;
s64 vrtc_offset;
switch (cmd) {