summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorGong Yuanjun <ruc_gongyuanjun@163.com>2022-05-17 17:57:00 +0800
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-14 18:32:44 +0200
commitfee8ae0a0bb66eb7730c22f44fbd7203f63c2eab (patch)
tree3392cd6f7e1a5da0f481e418471ba96614e00763 /scripts
parent3e5768683022f2ac878d38c0332bf1550e3db120 (diff)
downloadlinux-fee8ae0a0bb66eb7730c22f44fbd7203f63c2eab.tar.gz
linux-fee8ae0a0bb66eb7730c22f44fbd7203f63c2eab.tar.bz2
linux-fee8ae0a0bb66eb7730c22f44fbd7203f63c2eab.zip
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')
0 files changed, 0 insertions, 0 deletions