We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 038586c commit 78b562fCopy full SHA for 78b562f
kernel/events/core.c
@@ -10209,9 +10209,9 @@ static int perf_copy_attr(struct perf_event_attr __user *uattr,
10209
* __u16 sample size limit.
10210
*/
10211
if (attr->sample_stack_user >= USHRT_MAX)
10212
- ret = -EINVAL;
+ return -EINVAL;
10213
else if (!IS_ALIGNED(attr->sample_stack_user, sizeof(u64)))
10214
10215
}
10216
10217
if (!attr->sample_max_stack)
0 commit comments