diff options
author | Alisa Khabibrakhmanova <khabibrakhmanova@ispras.ru> | 2022-07-29 12:06:43 +0300 |
---|---|---|
committer | Daniel Vetter <daniel.vetter@ffwll.ch> | 2022-09-07 08:01:16 +0300 |
commit | 5e1bfb277d3b87bc580735564eb487c0be3848b3 (patch) | |
tree | 275f115a5aff9649fa1cd91e85feb2bb54cf3e0a /include | |
parent | 07d50b8222d0d6fcbb281393048e36e797334ac6 (diff) | |
download | linux-5e1bfb277d3b87bc580735564eb487c0be3848b3.tar.xz |
drm/via: Add new condition to via_dma_cleanup()
Pointer dev_priv->mmio, which was checked for NULL at via_do_init_map(),
is passed to via_do_cleanup_map() and is dereferenced there without check.
The patch adds the condition in via_dma_cleanup() which prevents potential NULL
pointer dereference.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 22f579c621e2 ("drm: Add via unichrome support")
Signed-off-by: Alisa Khabibrakhmanova <khabibrakhmanova@ispras.ru>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link: https://patchwork.freedesktop.org/patch/msgid/20220729090643.240778-1-khabibrakhmanova@ispras.ru
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions