Home
last modified time | relevance | path

Searched hist:a2b28708 (Results 1 – 1 of 1) sorted by relevance

/openbmc/linux/drivers/gpu/drm/radeon/
H A Dradeon_connectors.ca2b28708 Tue May 17 04:57:00 CDT 2022 Gong Yuanjun <ruc_gongyuanjun@163.com> drm/radeon: fix a possible null pointer dereference

In radeon_fp_native_mode(), the return value of drm_mode_duplicate()
is assigned to mode, which will lead to a NULL pointer dereference
on failure of drm_mode_duplicate(). Add a check to avoid npd.

The failure status of drm_cvt_mode() on the other path is checked too.

Signed-off-by: Gong Yuanjun <ruc_gongyuanjun@163.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>