[media] drivers/media/media-device: move debug log before _devnode_unregister()
authorMax Kellermann <max@duempel.org>
Mon, 21 Mar 2016 13:30:33 +0000 (10:30 -0300)
committerMauro Carvalho Chehab <mchehab@osg.samsung.com>
Sat, 7 May 2016 14:24:02 +0000 (11:24 -0300)
commitc56d34a73ea3622fbc3f5a85140f2353f14b591c
treea2eed876ded1fc63afc231728dca17ada05b8c64
parent47cae1e1cfdb6a07ca19c61345c4d96f828b14d7
[media] drivers/media/media-device: move debug log before _devnode_unregister()

After media_devnode_unregister(), the struct media_device may be freed
already, and dereferencing it may crash.

Signed-off-by: Max Kellermann <max@duempel.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@osg.samsung.com>
drivers/media/media-device.c