Re: [PATCH v2] bpf: Remove unnecessary assertion on fp_old
From: Daniel Borkmann
Date: Thu Dec 19 2019 - 16:26:29 EST
On Thu, Dec 19, 2019 at 11:57:35AM -0600, Aditya Pakki wrote:
> The two callers of bpf_prog_realloc - bpf_patch_insn_single and
> bpf_migrate_filter dereference the struct fp_old, before passing
> it to the function. Thus assertion to check fp_old is unnecessary
> and can be removed.
>
> Signed-off-by: Aditya Pakki <pakki001@xxxxxxx>
Applied, thanks!