drm/imagination: Use pvr_vm_context_get()
authorMatt Coster <Matt.Coster@imgtec.com>
Fri, 30 Aug 2024 15:06:01 +0000 (15:06 +0000)
committerMatt Coster <matt.coster@imgtec.com>
Mon, 2 Sep 2024 08:42:45 +0000 (09:42 +0100)
commiteb4accc5234525e2cb2b720187ccaf6db99b705f
tree419eb95c0dec2d136795b18092c11c61411036ed
parentc7d84a45f4266e9ff4c61eddde4acbfddb8f6b57
drm/imagination: Use pvr_vm_context_get()

I missed this open-coded kref_get() while trying to debug a refcount
bug, so let's use the helper function here to avoid that waste of time
again in the future.

Fixes: ff5f643de0bf ("drm/imagination: Add GEM and VM related code")
Reviewed-by: Frank Binns <frank.binns@imgtec.com>
Link: https://patchwork.freedesktop.org/patch/msgid/8616641d-6005-4b25-bc0a-0b53985a0e08@imgtec.com
Signed-off-by: Matt Coster <matt.coster@imgtec.com>
drivers/gpu/drm/imagination/pvr_vm.c