]> git.ipfire.org Git - thirdparty/linux.git/commit
drm/i915: handle failure from vga_get_uninterruptible()
authorSimon Richter <Simon.Richter@hogyros.de>
Fri, 6 Mar 2026 15:13:16 +0000 (00:13 +0900)
committerVille Syrjälä <ville.syrjala@linux.intel.com>
Tue, 10 Mar 2026 15:01:42 +0000 (17:01 +0200)
commitcda15ff39df82ef6842affeb8cf57d0090708227
tree51c7e44cc660ff05cd7037e91a30c63b2fc608d1
parent878004e2852bc22ce0687c5597d6fe3909fb59f3
drm/i915: handle failure from vga_get_uninterruptible()

The vga_get_uninterruptible() function can return an error if it fails to
set up VGA decoding for the requested device.

If VGA decoding is unavailable, we don't need to be careful to leave the
VGA emulation in a usable state, as vgacon will also be unable to get
access later on, so just skip over the VGA accesses and the vga_put() call
matching the failed vga_get_uninterruptible().

Signed-off-by: Simon Richter <Simon.Richter@hogyros.de>
Closes: https://gitlab.freedesktop.org/drm/xe/kernel/-/issues/1824
Signed-off-by: Ville Syrjälä <ville.syrjala@linux.intel.com>
Link: https://patch.msgid.link/20260306151347.758836-1-Simon.Richter@hogyros.de
drivers/gpu/drm/i915/display/intel_vga.c