drm/drv: Hold ref on parent device during drm_device lifetime
authorNoralf Trønnes <noralf@tronnes.org>
Mon, 25 Feb 2019 14:42:26 +0000 (15:42 +0100)
committerNoralf Trønnes <noralf@tronnes.org>
Mon, 4 Mar 2019 14:22:41 +0000 (15:22 +0100)
commit56be6503aab2bc3a30beae408071b9be5e1bae51
treee5bf757b07374dd002b596e24ce4e24582fb6ed4
parenta7db690c062866a3f3a0efb43875c1bb45051f7a
drm/drv: Hold ref on parent device during drm_device lifetime

This makes it safe to access drm_device->dev after the parent device has
been removed/unplugged.

Signed-off-by: Noralf Trønnes <noralf@tronnes.org>
Reviewed-by: Gerd Hoffmann <kraxel@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20190225144232.20761-2-noralf@tronnes.org
drivers/gpu/drm/drm_drv.c