projects
/
linux-2.6-microblaze.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Merge tag 'x86-kaslr-2020-10-12' of git://git.kernel.org/pub/scm/linux/kernel/git...
[linux-2.6-microblaze.git]
/
drivers
/
mfd
/
ab8500-debugfs.c
diff --git
a/drivers/mfd/ab8500-debugfs.c
b/drivers/mfd/ab8500-debugfs.c
index
1a9a341
..
6d1bf7c
100644
(file)
--- a/
drivers/mfd/ab8500-debugfs.c
+++ b/
drivers/mfd/ab8500-debugfs.c
@@
-1801,7
+1801,7
@@
static ssize_t ab8500_hwreg_write(struct file *file,
int buf_size, ret;
/* Get userspace string and assure termination */
- buf_size = min(
count,
(sizeof(buf)-1));
+ buf_size = min(
(int)count, (int)
(sizeof(buf)-1));
if (copy_from_user(buf, user_buf, buf_size))
return -EFAULT;
buf[buf_size] = 0;