drm/panthor: Reset the FW VM to NULL on unplug
authorBoris Brezillon <boris.brezillon@collabora.com>
Thu, 2 May 2024 18:38:11 +0000 (20:38 +0200)
committerBoris Brezillon <boris.brezillon@collabora.com>
Mon, 13 May 2024 07:52:19 +0000 (09:52 +0200)
commita257e8182261da48b7c34615f2752f8a78ac108b
treeecfffac2ed43b9f5fd060b454515a6c2090338f5
parentff60c8da0aaf7ecf5f4d48bebeb3c1f52b2088dd
drm/panthor: Reset the FW VM to NULL on unplug

This way get NULL derefs instead of use-after-free if the FW VM is
referenced after the device has been unplugged.

Signed-off-by: Boris Brezillon <boris.brezillon@collabora.com>
Reviewed-by: Steven Price <steven.price@arm.com>
Acked-by: Liviu Dudau <liviu.dudau@arm.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20240502183813.1612017-4-boris.brezillon@collabora.com
drivers/gpu/drm/panthor/panthor_fw.c