Re: [PATCH bpf-next] bpf: Fix returned error sign when link doesn't support updates

2020-05-25 Thread Daniel Borkmann
On 5/25/20 2:29 PM, Jakub Sitnicki wrote: System calls encode returned errors as negative values. Fix a typo that breaks this convention for bpf(LINK_UPDATE) when bpf_link doesn't support update operation. Fixes: f9d041271cf4 ("bpf: Refactor bpf_link update handling") Signed-off-by: Jakub Sitnic

[PATCH bpf-next] bpf: Fix returned error sign when link doesn't support updates

2020-05-25 Thread Jakub Sitnicki
System calls encode returned errors as negative values. Fix a typo that breaks this convention for bpf(LINK_UPDATE) when bpf_link doesn't support update operation. Fixes: f9d041271cf4 ("bpf: Refactor bpf_link update handling") Signed-off-by: Jakub Sitnicki --- kernel/bpf/syscall.c | 2 +- 1 file