Skip to content
Commit b1c780ed authored by Andrii Nakryiko's avatar Andrii Nakryiko Committed by Greg Kroah-Hartman
Browse files

bpf: clean up visit_insn()'s instruction processing

[ Upstream commit 653ae3a8

 ]

Instead of referencing processed instruction repeatedly as insns[t]
throughout entire visit_insn() function, take a local insn pointer and
work with it in a cleaner way.

It makes enhancing this function further a bit easier as well.

Signed-off-by: default avatarAndrii Nakryiko <andrii@kernel.org>
Link: https://lore.kernel.org/r/20230302235015.2044271-7-andrii@kernel.org


Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
Stable-dep-of: 3feb263b

 ("bpf: handle ldimm64 properly in check_cfg()")
Signed-off-by: default avatarSasha Levin <sashal@kernel.org>
parent 97bb6dab
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment