aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
diff options
context:
space:
mode:
authorXie Yongji <[email protected]>2021-05-17 08:49:12 +0000
committerGerd Hoffmann <[email protected]>2021-05-18 08:55:30 +0000
commitcec7f1774605a5ef47c134af62afe7c75c30b0ee (patch)
tree9558939082eabe2360067bf4fe0c9a360b27fd78 /drivers/gpu/drm/amd/amdgpu/amdgpu_test.c
parentdrm/virtio: Fixes a potential NULL pointer dereference on probe failure (diff)
downloadkernel-cec7f1774605a5ef47c134af62afe7c75c30b0ee.tar.gz
kernel-cec7f1774605a5ef47c134af62afe7c75c30b0ee.zip
drm/virtio: Fix double free on probe failure
The virtio_gpu_init() will free vgdev and vgdev->vbufs on failure. But such failure will be caught by virtio_gpu_probe() and then virtio_gpu_release() will be called to do some cleanup which will free vgdev and vgdev->vbufs again. So let's set dev->dev_private to NULL to avoid double free. Signed-off-by: Xie Yongji <[email protected]> Link: http://patchwork.freedesktop.org/patch/msgid/[email protected] Signed-off-by: Gerd Hoffmann <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_test.c')
0 files changed, 0 insertions, 0 deletions