summaryrefslogtreecommitdiff
path: root/net/bluetooth/hci_request.c
diff options
context:
space:
mode:
authorToke Høiland-Jørgensen <toke@redhat.com>2019-11-02 12:09:37 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2019-12-31 16:44:33 +0100
commit8f2570572e0e52026d09bbbe18e81bf2985ca92d (patch)
treee4b8d3ca1ee26a6cac98b7c746611a3707798078 /net/bluetooth/hci_request.c
parent8679dce8c662e1c72230332812a283b23d34a9a7 (diff)
libbpf: Fix error handling in bpf_map__reuse_fd()
[ Upstream commit d1b4574a4b86565325ef2e545eda8dfc9aa07c60 ] bpf_map__reuse_fd() was calling close() in the error path before returning an error value based on errno. However, close can change errno, so that can lead to potentially misleading error messages. Instead, explicitly store errno in the err variable before each goto. Signed-off-by: Toke Høiland-Jørgensen <toke@redhat.com> Signed-off-by: Alexei Starovoitov <ast@kernel.org> Acked-by: Andrii Nakryiko <andriin@fb.com> Link: https://lore.kernel.org/bpf/157269297769.394725.12634985106772698611.stgit@toke.dk Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'net/bluetooth/hci_request.c')
0 files changed, 0 insertions, 0 deletions