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 'exynos-drm-fixes-for-v4.16-rc3' of git://git.kernel.org/pub/scm/linux...
[linux-2.6-microblaze.git]
/
kernel
/
compat.c
diff --git
a/kernel/compat.c
b/kernel/compat.c
index
d1cee65
..
3247fe7
100644
(file)
--- a/
kernel/compat.c
+++ b/
kernel/compat.c
@@
-355,7
+355,7
@@
COMPAT_SYSCALL_DEFINE3(sched_getaffinity, compat_pid_t, pid, unsigned int, len,
ret = sched_getaffinity(pid, mask);
if (ret == 0) {
-
size_t retlen = min_t(size_t,
len, cpumask_size());
+
unsigned int retlen = min(
len, cpumask_size());
if (compat_put_bitmap(user_mask_ptr, cpumask_bits(mask), retlen * 8))
ret = -EFAULT;