]> git.baikalelectronics.ru Git - kernel.git/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)
committerSteven Price <steven.price@arm.com>
Fri, 19 Jun 2020 10:00:02 +0000 (11:00 +0100)
commite73a25e3269b36e07251ef5339ba5e0be5135685
tree07dec3b3d7089d6638453d64eb8b1acf96f200c7
parentc6771d6c5c1a8ce624562525815bee40f594c30e
drm/panfrost: Use kvfree() to free bo->sgts

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

Fixes: 6a8c97e79db1 ("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
drivers/gpu/drm/panfrost/panfrost_gem.c
drivers/gpu/drm/panfrost/panfrost_mmu.c