]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu/virt: fix double kfree on bo_va
authorColin Ian King <colin.king@canonical.com>
Fri, 3 Feb 2017 20:23:42 +0000 (20:23 +0000)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 9 Feb 2017 02:06:00 +0000 (21:06 -0500)
commitd619928ab95478e692d281b8f0d2f9ee1df2af30
treee8c59eb4f5a40c254364a68488077d93d781611e
parent585388aa84632f46282a05ef526e27ba171891a2
drm/amdgpu/virt: fix double kfree on bo_va

bo_va is being kfree'd twice, once in the call to amdgpu_vm_bo_rmv
and then a short while later. Fix this double free by removing
the 2nd kfree.

Detected by CoverityScan, CID#1399524 ("Double Free")

Reviewed-by: Monk Liu <monk.liu@amd.com>
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/amdgpu_virt.c