]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: use the same condition in perf event set/free bpf handler
authorYonghong Song <yhs@fb.com>
Tue, 24 Oct 2017 06:53:07 +0000 (23:53 -0700)
committerDavid S. Miller <davem@davemloft.net>
Wed, 25 Oct 2017 01:47:46 +0000 (10:47 +0900)
commitd0b1843795372ec9f07b070e29992117b6c810c4
tree3066cb26b51427492db61b5ffe5a795f007adf68
parent9835573beb51a8a94f8a1febab62b03f8f9ac999
bpf: use the same condition in perf event set/free bpf handler

This is a cleanup such that doing the same check in
perf_event_free_bpf_prog as we already do in
perf_event_set_bpf_prog step.

Signed-off-by: Yonghong Song <yhs@fb.com>
Acked-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Martin KaFai Lau <kafai@fb.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
kernel/events/core.c