aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/i915/display/intel_dp_mst.c
diff options
context:
space:
mode:
authorTakashi Iwai <[email protected]>2021-04-02 10:23:17 +0200
committerVille Syrjälä <[email protected]>2021-04-08 00:00:24 +0300
commit337d7a1621c7f02af867229990ac67c97da1b53a (patch)
tree9fa5f0fa385c3956728b0a5f666a35b4c2dee5aa /drivers/gpu/drm/i915/display/intel_dp_mst.c
parent11cda4967a33003dc19e90f5df3470031a864d8d (diff)
drm/i915: Fix invalid access to ACPI _DSM objects
intel_dsm_platform_mux_info() tries to parse the ACPI package data from _DSM for the debug information, but it assumes the fixed format without checking what values are stored in the elements actually. When an unexpected value is returned from BIOS, it may lead to GPF or NULL dereference, as reported recently. Add the checks of the contents in the returned values and skip the values for invalid cases. v1->v2: Check the info contents before dereferencing, too BugLink: http://bugzilla.opensuse.org/show_bug.cgi?id=1184074 Cc: <[email protected]> Signed-off-by: Takashi Iwai <[email protected]> Signed-off-by: Ville Syrjälä <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_dp_mst.c')
0 files changed, 0 insertions, 0 deletions