projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
perf symbols: Fix random fd closing with no libelf
[firefly-linux-kernel-4.4.55.git]
/
tools
/
perf
/
util
/
symbol-minimal.c
diff --git
a/tools/perf/util/symbol-minimal.c
b/tools/perf/util/symbol-minimal.c
index 2d2dd0532b5a971e588086c0605ae0d6ed4080df..ac7070a2f2b6defd3cbd62396ed5122584b9ef4c 100644
(file)
--- a/
tools/perf/util/symbol-minimal.c
+++ b/
tools/perf/util/symbol-minimal.c
@@
-253,6
+253,7
@@
int symsrc__init(struct symsrc *ss, struct dso *dso __maybe_unused,
if (!ss->name)
goto out_close;
+ ss->fd = fd;
ss->type = type;
return 0;