Re: [PATCH] nfp: bpf: offload: Check prog before dereference

From: Jakub Kicinski
Date: Wed Oct 18 2023 - 11:17:10 EST


On Wed, 18 Oct 2023 17:52:44 +0300 Artem Chernyshev wrote:
> In nfp_net_bpf_offload() it is possible to dereference a
> NULL pointer.

And who would call this function with prog = NULL if old_prog
is also NULL, exactly?
--
pw-bot: cr