HID: bpf: reorder BPF registration
Given that our initial BPF program is not using any kfuncs anymore, we can reorder the initialization to first try to load it and then register the kfuncs. This has the advantage of not exporting kfuncs when HID-BPF is not working. Signed-off-by: NBenjamin Tissoires <benjamin.tissoires@redhat.com> Acked-by: NAlexei Starovoitov <ast@kernel.org> Signed-off-by: NJiri Kosina <jkosina@suse.cz>
Showing
想要评论请 注册 或 登录