Skip to content
Commit bb5747cf authored by Alexei Starovoitov's avatar Alexei Starovoitov
Browse files

libbpf: Restore errno after pr_warn.

pr_warn calls into user-provided callback, which can clobber errno, so
`errno = saved_errno` should happen after pr_warn.

Fixes: 07453245

 ("libbpf: fix errno is overwritten after being closed.")
Signed-off-by: default avatarAlexei Starovoitov <ast@kernel.org>
parent 678a1c03
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