diff options
author | Kirill A. Shutemov <[email protected]> | 2021-11-30 21:49:30 +0300 |
---|---|---|
committer | Dave Hansen <[email protected]> | 2021-11-30 14:52:26 -0800 |
commit | 23ef731e4365196bfc186358eb4f6265d60ab352 (patch) | |
tree | 90afa7b97341ebf4fd380d876022d3cc9328acdb /scripts/bpf_doc.py | |
parent | d58071a8a76d779eedab38033ae4c821c30295a5 (diff) |
x86/insn-eval: Handle insn_get_opcode() failure
is_string_insn() calls insn_get_opcode() that can fail, but does not
handle the failure.
is_string_insn() interface does not allow to communicate an error to the
caller.
Push insn_get_opcode() to the only non-static user of is_string_insn()
and fail it early if insn_get_opcode() fails.
[ dhansen: fix tabs-versus-spaces breakage ]
Signed-off-by: Kirill A. Shutemov <[email protected]>
Signed-off-by: Dave Hansen <[email protected]>
Tested-by: Joerg Roedel <[email protected]>
Acked-by: Tom Lendacky <[email protected]>
Link: https://lkml.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/bpf_doc.py')
0 files changed, 0 insertions, 0 deletions