aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/controller/pci-host-generic.c
diff options
context:
space:
mode:
authorTobias Klauser <[email protected]>2020-06-11 10:33:41 +0000
committerDaniel Borkmann <[email protected]>2020-06-11 21:52:19 +0000
commit2c4779eff837f1035f6f9650d246905daadd9528 (patch)
tree590ed0b5cc99e94266f3b68b14681223f85362dd /drivers/pci/controller/pci-host-generic.c
parentxdp: Fix xsk_generic_xmit errno (diff)
downloadkernel-2c4779eff837f1035f6f9650d246905daadd9528.tar.gz
kernel-2c4779eff837f1035f6f9650d246905daadd9528.zip
tools, bpftool: Exit on error in function codegen
Currently, the codegen function might fail and return an error. But its callers continue without checking its return value. Since codegen can fail only in the unlikely case of the system running out of memory or the static template being malformed, just exit(-1) directly from codegen and make it void-returning. Suggested-by: Andrii Nakryiko <[email protected]> Signed-off-by: Tobias Klauser <[email protected]> Signed-off-by: Daniel Borkmann <[email protected]> Acked-by: Andrii Nakryiko <[email protected]> Link: https://lore.kernel.org/bpf/[email protected]
Diffstat (limited to 'drivers/pci/controller/pci-host-generic.c')
0 files changed, 0 insertions, 0 deletions