summaryrefslogtreecommitdiff
path: root/scripts/Makefile.modinst
diff options
context:
space:
mode:
authorGong Yuanjun <ruc_gongyuanjun@163.com>2022-05-17 12:57:00 +0300
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-14 17:59:38 +0300
commit8a89bfeef9abe93371e3ea8796377f2d132eee29 (patch)
tree23fec407da2a3a9e08b2116a49249bce3c3d54e6 /scripts/Makefile.modinst
parent9266323283c909bc673936507f8e1682eedbdbb3 (diff)
downloadlinux-8a89bfeef9abe93371e3ea8796377f2d132eee29.tar.xz
drm/radeon: fix a possible null pointer dereference
[ Upstream commit a2b28708b645c5632dc93669ab06e97874c8244f ] 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> Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'scripts/Makefile.modinst')
0 files changed, 0 insertions, 0 deletions