drm/exynos: Clear drvdata after component unbind
authorMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 9 Oct 2017 08:44:01 +0000 (10:44 +0200)
committerInki Dae <inki.dae@samsung.com>
Sun, 15 Oct 2017 22:44:49 +0000 (07:44 +0900)
commit238604ca0b708319e089e22545bcda39afb5faa8
tree9fd7845c9bc84181250fb24867e62f83949a304f
parent0a51897bfac9886d36e986d009df0317582b19a2
drm/exynos: Clear drvdata after component unbind

When components are unbound, DRM driver is unregistered and freed,
so clear drvdata to avoid potential use-after-free issue in
suspend/resume paths.

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_drv.c