[PATCH v7 bpf-next 2/2] selftests/bpf: Add a kernel flag test for LSM bpf hook
Alexei Starovoitov
alexei.starovoitov at gmail.com
Tue Mar 11 11:30:51 UTC 2025
On Tue, Mar 11, 2025 at 12:07 AM Song Liu <song at kernel.org> wrote:
> > + lskel = kfunc_call_test_lskel__open_and_load();
> > + if (!ASSERT_ERR_PTR(lskel, "lskel"))
> > + goto close_prog;
>
> This goto is not necessary. But I don't think we need v8 just for this.
I left goto as-is while applying.
I felt all error handling being consistent this way is cleaner.
More information about the Linux-security-module-archive
mailing list