Files
linux/kernel
Hao Luo be3bb83dab bpf, iter: Fix the condition on p when calling stop.
In bpf_seq_read, seq->op->next() could return an ERR and jump to
the label stop. However, the existing code in stop does not handle
the case when p (returned from next()) is an ERR. Adds the handling
of ERR of p by converting p into an error and jumping to done.

Because all the current implementations do not have a case that
returns ERR from next(), so this patch doesn't have behavior changes
right now.

Acked-by: Yonghong Song <[email protected]>
Signed-off-by: Hao Luo <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Alexei Starovoitov <[email protected]>
2022-08-09 09:12:00 -07:00
..
2021-12-02 17:25:21 +09:00
2022-06-15 19:28:44 -04:00
…
…
…
2022-03-15 10:32:44 +01:00
…
…
…
2022-07-12 15:27:19 -07:00
…
…
…
2021-10-14 13:29:18 +02:00
2022-01-08 12:43:57 -06:00
…
…
…
2022-02-25 09:36:06 +01:00
…
…
…
…
…