]> git.itanic.dy.fi Git - linux-stable/commit
drm/panfrost: Use kvfree() to free bo->sgts
authorDenis Efremov <efremov@linux.com>
Mon, 8 Jun 2020 15:17:28 +0000 (18:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 21 Aug 2020 11:05:39 +0000 (13:05 +0200)
commitaeec14061d53480e8f9ac2a3d0a067aed5f9b5cb
treed9b23cfd4ebdfdebe1f69f2c30fe9983e17842ad
parenta202b42b94bc7cc860edca64153d2ed65e7e221e
drm/panfrost: Use kvfree() to free bo->sgts

commit 114427b8927a4def2942b2b886f7e4aeae289ccb upstream.

Use kvfree() to free bo->sgts, because the memory is allocated with
kvmalloc_array() in panfrost_mmu_map_fault_addr().

Fixes: 187d2929206e ("drm/panfrost: Add support for GPU heap allocations")
Cc: stable@vger.kernel.org
Signed-off-by: Denis Efremov <efremov@linux.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Signed-off-by: Steven Price <steven.price@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20200608151728.234026-1-efremov@linux.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/gpu/drm/panfrost/panfrost_gem.c
drivers/gpu/drm/panfrost/panfrost_mmu.c