diff options
author | Natalia Petrova <n.petrova@fintech.ru> | 2023-05-12 13:33:20 +0300 |
---|---|---|
committer | Lyude Paul <lyude@redhat.com> | 2023-06-13 16:53:00 -0400 |
commit | 55b94bb8c42464bad3d2217f6874aa1a85664eac (patch) | |
tree | 8c2d1fc76afea503890ff2bf9a694cb888ae7605 /include | |
parent | 20a2ce87fbaf81e4c3dcb631d738e423959eb320 (diff) |
drm/nouveau: add nv_encoder pointer check for NULLdrm-misc-fixes-2023-06-16
Pointer nv_encoder could be dereferenced at nouveau_connector.c
in case it's equal to NULL by jumping to goto label.
This patch adds a NULL-check to avoid it.
Found by Linux Verification Center (linuxtesting.org) with SVACE.
Fixes: 3195c5f9784a ("drm/nouveau: set encoder for lvds")
Signed-off-by: Natalia Petrova <n.petrova@fintech.ru>
Reviewed-by: Lyude Paul <lyude@redhat.com>
[Fixed patch title]
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230512103320.82234-1-n.petrova@fintech.ru
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions