[PATCH 02/51] drm/i915: Don't clear drvdata in ->release

Chris Wilson chris at chris-wilson.co.uk
Fri Feb 21 21:36:20 UTC 2020


Quoting Daniel Vetter (2020-02-21 21:02:30)
> For two reasons:
> 
> - The driver core clears this already for us after we're unloaded in
>   __device_release_driver().

Even if we abort before loading?

History notes that i915_pci_remove was called with a stale pointer on
error.
-Chris


More information about the dri-devel mailing list