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 69d99a9 commit 1262bdaCopy full SHA for 1262bda
kernel/trace/trace.c
@@ -750,7 +750,10 @@ int trace_pid_write(struct trace_pid_list *filtered_pids,
750
/* copy the current bits to the new max */
751
ret = trace_pid_list_first(filtered_pids, &pid);
752
while (!ret) {
753
- trace_pid_list_set(pid_list, pid);
+ ret = trace_pid_list_set(pid_list, pid);
754
+ if (ret < 0)
755
+ goto out;
756
+
757
ret = trace_pid_list_next(filtered_pids, pid + 1, &pid);
758
nr_pids++;
759
}
@@ -787,6 +790,7 @@ int trace_pid_write(struct trace_pid_list *filtered_pids,
787
790
trace_parser_clear(&parser);
788
791
ret = 0;
789
792
793
+ out:
794
trace_parser_put(&parser);
795
796
if (ret < 0) {
0 commit comments