diff options
author | Dongliang Mu <mudongliangabcd@gmail.com> | 2021-08-10 18:03:19 +0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2021-08-13 10:24:37 +0200 |
commit | 50f05bd114a46a74726e432bf81079d3f13a55b7 (patch) | |
tree | 17466bf6513ff3f45251fe7990738e4f85925040 /tools/perf/scripts/python/bin/export-to-postgresql-report | |
parent | 57a1681095f912239c7fb4d66683ab0425973838 (diff) |
ipack: tpci200: fix memory leak in the tpci200_register
The error handling code in tpci200_register does not free interface_regs
allocated by ioremap and the current version of error handling code is
problematic.
Fix this by refactoring the error handling code and free interface_regs
when necessary.
Fixes: 43986798fd50 ("ipack: add error handling for ioremap_nocache")
Cc: stable@vger.kernel.org
Reported-by: Dongliang Mu <mudongliangabcd@gmail.com>
Signed-off-by: Dongliang Mu <mudongliangabcd@gmail.com>
Link: https://lore.kernel.org/r/20210810100323.3938492-2-mudongliangabcd@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/bin/export-to-postgresql-report')
0 files changed, 0 insertions, 0 deletions