Files
linux/drivers/gpu/drm
Natalia Petrova 20a2ce87fb drm/nouveau/dp: check for NULL nv_connector->native_mode
Add checking for NULL before calling nouveau_connector_detect_depth() in
nouveau_connector_get_modes() function because nv_connector->native_mode
could be dereferenced there since connector pointer passed to
nouveau_connector_detect_depth() and the same value of
nv_connector->native_mode is used there.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: d4c2c99bdc ("drm/nouveau/dp: remove broken display depth function, use the improved one")

Signed-off-by: Natalia Petrova <n.petrova@fintech.ru>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230512111526.82408-1-n.petrova@fintech.ru
2023-06-13 16:50:06 -04:00
..
2023-03-14 17:07:48 +01:00
2023-06-07 11:53:22 +08:00
2023-03-29 16:00:23 +02:00
2023-03-14 17:07:48 +01:00
2023-03-14 17:07:48 +01:00
2023-03-29 16:00:23 +02:00
2023-03-22 10:24:47 +01:00
2023-03-29 16:00:23 +02:00
2023-05-22 12:23:50 +02:00
2023-02-20 14:56:52 +01:00