summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/cs-trace-disasm.py
diff options
context:
space:
mode:
authorShanker Donthineni <shankerd@codeaurora.org>2016-02-01 20:19:44 -0600
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-09-15 09:40:41 +0200
commit4a0c7f6afea7d76ce53ca1f9517c2f9ac9ea13ea (patch)
treec7a3cc96c969113df090b92244ce3389016a12d2 /tools/perf/scripts/python/cs-trace-disasm.py
parentad37cd79428ee7206be05edba64de6aa3397587e (diff)
irqchip/gicv3-its: Fix memory leak in its_free_tables()
commit 1a485f4d2e28efd77075b2952926683d6c245633 upstream. The current ITS driver has a memory leak in its_free_tables(). It happens on tear down path of the driver when its_probe() call fails. its_free_tables() should free the exact number of pages that have been allocated, not just a single page as current code does. This patch records the memory size for each ITS_BASERn at the time of page allocation and uses the same size information when freeing pages to fix the issue. Signed-off-by: Shanker Donthineni <shankerd@codeaurora.org> Acked-by: Marc Zyngier <marc.zyngier@arm.com> Cc: Jason Cooper <jason@lakedaemon.net> Cc: Vikram Sethi <vikrams@codeaurora.org> Cc: linux-arm-kernel@lists.infradead.org Link: http://lkml.kernel.org/r/1454379584-21772-1-git-send-email-shankerd@codeaurora.org Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Signed-off-by: Hanjun Guo <hanjun.guo@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/cs-trace-disasm.py')
0 files changed, 0 insertions, 0 deletions