]> git.baikalelectronics.ru Git - kernel.git/commit
drm/i915: Remove pci private pointer after destroying the device private
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Jul 2018 08:03:31 +0000 (09:03 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 16 Jul 2018 10:25:28 +0000 (11:25 +0100)
commitcf229171e93c8c45e334f7a1d254455188a20d15
treead4363b03052981f73d35df6b89e51bd1559d229
parent2bd8517d5945e1f75e2217a7b34fd61aa0d22f5b
drm/i915: Remove pci private pointer after destroying the device private

On an aborted module load, we unwind and free our device private - but
we left a dangling pointer to our privates inside the pci_device. After
the attempted aborted unload, we may still get a call to i915_pci_remove()
when the module is removed, potentially chasing stale data.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@intel.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20180716080332.32283-5-chris@chris-wilson.co.uk
drivers/gpu/drm/i915/i915_drv.c
drivers/gpu/drm/i915/i915_pci.c