diff options
| author | Dmitry Osipenko <[email protected]> | 2022-06-30 23:07:18 +0300 |
|---|---|---|
| committer | Gerd Hoffmann <[email protected]> | 2022-07-19 14:40:57 +0200 |
| commit | 64b88afbd92fbf434759d1896a7cf705e1c00e79 (patch) | |
| tree | 56fbf2fb5d3efdfe0daaefb824fd7da9a6ca8ea8 /tools/perf/scripts/python/export-to-sqlite.py | |
| parent | 15fced5b051e6e22c228a521a5894b12c2ba0892 (diff) | |
drm/virtio: Correct drm_gem_shmem_get_sg_table() error handling
Previous commit fixed checking of the ERR_PTR value returned by
drm_gem_shmem_get_sg_table(), but it missed to zero out the shmem->pages,
which will crash virtio_gpu_cleanup_object(). Add the missing zeroing of
the shmem->pages.
Fixes: c24968734abf ("drm/virtio: Fix NULL vs IS_ERR checking in virtio_gpu_object_shmem_init")
Reviewed-by: Emil Velikov <[email protected]>
Signed-off-by: Dmitry Osipenko <[email protected]>
Link: http://patchwork.freedesktop.org/patch/msgid/[email protected]
Signed-off-by: Gerd Hoffmann <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions