]> git.baikalelectronics.ru Git - kernel.git/commit
bpf: Fix an error code in check_btf_func()
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 4 Jun 2020 08:54:36 +0000 (11:54 +0300)
committerDaniel Borkmann <daniel@iogearbox.net>
Thu, 4 Jun 2020 21:38:54 +0000 (23:38 +0200)
commitdec4a59f7edd16a99f748d5b5ec1dbdad7262626
tree3a6e82cb49723a4c17396dd690ae7bf713ea1e5e
parent220563b64d48d606ae9d34b475f9775368ce4d98
bpf: Fix an error code in check_btf_func()

This code returns success if the "info_aux" allocation fails but it
should return -ENOMEM.

Fixes: c1d97dc5ef0d ("bpf: Compare BTF types of functions arguments with actual types")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Daniel Borkmann <daniel@iogearbox.net>
Acked-by: Song Liu <songliubraving@fb.com>
Link: https://lore.kernel.org/bpf/20200604085436.GA943001@mwanda
kernel/bpf/verifier.c