Skip to content
Snippets Groups Projects
Commit a72e9cba authored by Matt Roper's avatar Matt Roper
Browse files

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.

(cherry picked from commit 718551bb)

Fixes: 12e6f6dc ("drm/i915/display: Handle GMD_ID identification in display code")
Reported-by: default avatarDan Carpenter <dan.carpenter@linaro.org>
Closes: https://lore.kernel.org/all/55236f93-dcc5-481e-b788-9f7e95b129d8@kili.mountain/


Reviewed-by: default avatarGustavo Sousa <gustavo.sousa@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20230601173804.557756-1-matthew.d.roper@intel.com
Link: https://lore.kernel.org/r/20230606235242.1895643-9-matthew.d.roper@intel.com


Signed-off-by: default avatarMatt Roper <matthew.d.roper@intel.com>
parent 808228d1
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment