diff options
Diffstat (limited to 'include/linux/bpf_verifier.h')
| -rw-r--r-- | include/linux/bpf_verifier.h | 4 | 
1 files changed, 2 insertions, 2 deletions
diff --git a/include/linux/bpf_verifier.h b/include/linux/bpf_verifier.h index 6503c85b10a3..7b776dae36e5 100644 --- a/include/linux/bpf_verifier.h +++ b/include/linux/bpf_verifier.h @@ -856,8 +856,8 @@ static inline u32 type_flag(u32 type)  /* only use after check_attach_btf_id() */  static inline enum bpf_prog_type resolve_prog_type(const struct bpf_prog *prog)  { -	return (prog->type == BPF_PROG_TYPE_EXT && prog->aux->dst_prog) ? -		prog->aux->dst_prog->type : prog->type; +	return (prog->type == BPF_PROG_TYPE_EXT && prog->aux->saved_dst_prog_type) ? +		prog->aux->saved_dst_prog_type : prog->type;  }  static inline bool bpf_prog_check_recur(const struct bpf_prog *prog)  | 
