aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorZiyang Xuan <[email protected]>2022-11-11 15:09:23 +0800
committerDavid S. Miller <[email protected]>2022-11-14 10:55:43 +0000
commite4041be97b15302ebfffda8bbd45f3b2d096048f (patch)
tree22664a5fac90072918491f34be979ed57fd13f89 /tools/perf/scripts/python/stackcollapse.py
parent9d3ff7131877fb092185c369fbb14b57ac4e7cec (diff)
octeon_ep: fix potential memory leak in octep_device_setup()
When occur unsupported_dev and mbox init errors, it did not free oct->conf and iounmap() oct->mmio[i].hw_addr. That would trigger memory leak problem. Add kfree() for oct->conf and iounmap() for oct->mmio[i].hw_addr under unsupported_dev and mbox init errors to fix the problem. Fixes: 862cd659a6fb ("octeon_ep: Add driver framework and device initialization") Signed-off-by: Ziyang Xuan <[email protected]> Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions