bpf: media: properly use bpf_prog_array api
authorStanislav Fomichev <sdf@google.com>
Tue, 28 May 2019 21:14:42 +0000 (14:14 -0700)
committerDaniel Borkmann <daniel@iogearbox.net>
Wed, 29 May 2019 13:17:35 +0000 (15:17 +0200)
commit02205d2ed6fe26a8f4fd9e9cec251d1dc7f79316
treeed0f1928b18a5950007b1c9ff27c3e79c778da81
parent54e9c9d4b506b611228890752d1cfa960e0965e1
bpf: media: properly use bpf_prog_array api

Now that we don't have __rcu markers on the bpf_prog_array helpers,
let's use proper rcu_dereference_protected to obtain array pointer
under mutex.

Cc: linux-media@vger.kernel.org
Cc: Mauro Carvalho Chehab <mchehab@kernel.org>
Cc: Sean Young <sean@mess.org>
Signed-off-by: Stanislav Fomichev <sdf@google.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
drivers/media/rc/bpf-lirc.c