diff options
| author | Andi Kleen <[email protected]> | 2019-10-20 10:51:54 -0700 |
|---|---|---|
| committer | Arnaldo Carvalho de Melo <[email protected]> | 2019-11-06 15:43:05 -0300 |
| commit | 796c01a4bfb4b35ec6d1bd1cd5d520515d078b51 (patch) | |
| tree | 57081bb36da7d51bac16f9e8287db0535b6d26b9 /net/lapb/lapb_iface.c | |
| parent | 9d604aad4bb022e848dec80d6fe5f73fe87061a2 (diff) | |
perf evsel: Always preserve errno while cleaning up perf_event_open failures
In some cases when perf_event_open fails, it may do some closes to clean
up. In special cases these closes can fail too, which overwrites the
errno of the perf_event_open, which is then incorrectly reported.
Save/restore errno around closes.
Signed-off-by: Andi Kleen <[email protected]>
Acked-by: Jiri Olsa <[email protected]>
Cc: Kan Liang <[email protected]>
Cc: Peter Zijlstra <[email protected]>
Cc: Stephane Eranian <[email protected]>
Link: http://lore.kernel.org/lkml/[email protected]
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions