hc
2024-05-10 23fa18eaa71266feff7ba8d83022d9e1cc83c65a
kernel/kernel/compat.c
....@@ -152,7 +152,7 @@
152152 if (len & (sizeof(compat_ulong_t)-1))
153153 return -EINVAL;
154154
155
- if (!alloc_cpumask_var(&mask, GFP_KERNEL))
155
+ if (!zalloc_cpumask_var(&mask, GFP_KERNEL))
156156 return -ENOMEM;
157157
158158 ret = sched_getaffinity(pid, mask);