aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
diff options
context:
space:
mode:
authorShanker Donthineni <[email protected]>2016-02-02 02:19:44 +0000
committerThomas Gleixner <[email protected]>2016-02-04 14:14:50 +0000
commit1a485f4d2e28efd77075b2952926683d6c245633 (patch)
tree3088dd5ab2953ebba071e45caece4e901da470bd /drivers/gpu/drm/amd/amdgpu/amdgpu_display.c
parentirqchip/sun4i: Fix compilation outside of arch/arm (diff)
downloadkernel-1a485f4d2e28efd77075b2952926683d6c245633.tar.gz
kernel-1a485f4d2e28efd77075b2952926683d6c245633.zip
irqchip/gicv3-its: Fix memory leak in its_free_tables()
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 <[email protected]> Acked-by: Marc Zyngier <[email protected]> Cc: Jason Cooper <[email protected]> Cc: Vikram Sethi <[email protected]> Cc: [email protected] Link: http://lkml.kernel.org/r/[email protected] Signed-off-by: Thomas Gleixner <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_display.c')
0 files changed, 0 insertions, 0 deletions