diff options
author | Matt Roper <matthew.d.roper@intel.com> | 2023-06-01 10:38:04 -0700 |
---|---|---|
committer | Matt Roper <matthew.d.roper@intel.com> | 2023-06-05 16:07:06 -0700 |
commit | 718551bbed3ca5308a9f9429305dd074727e8d46 (patch) | |
tree | a0640db64cf70fbafed581785bdde138dba4a037 /drivers/gpu/drm/i915/display/intel_display_debugfs.c | |
parent | 2d0cdf6020549400d93a3f56f09373ece71c76da (diff) | |
download | linux-718551bbed3ca5308a9f9429305dd074727e8d46.tar.gz linux-718551bbed3ca5308a9f9429305dd074727e8d46.tar.bz2 linux-718551bbed3ca5308a9f9429305dd074727e8d46.zip |
drm/i915: Fix error handling if driver creation fails during probe
If i915_driver_create() fails to create a valid 'i915' object, we
should just disable the PCI device and return immediately without trying
to call i915_probe_error() that relies on a valid i915 pointer.
Fixes: 12e6f6dc78e4 ("drm/i915/display: Handle GMD_ID identification in display code")
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/all/55236f93-dcc5-481e-b788-9f7e95b129d8@kili.mountain/
Signed-off-by: Matt Roper <matthew.d.roper@intel.com>
Reviewed-by: Gustavo Sousa <gustavo.sousa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230601173804.557756-1-matthew.d.roper@intel.com
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_display_debugfs.c')
0 files changed, 0 insertions, 0 deletions