Skip to content

Commit 00d5f09

Browse files
author
Rob Clark
committed
drm/msm: Ensure vm is created in VM_BIND ioctl
Since the vm is lazily created, to allow userspace to opt-in to a VM_BIND context, we can't assume it is already created. Fixes: 2e6a8a1 ("drm/msm: Add VM_BIND ioctl") Signed-off-by: Rob Clark <robin.clark@oss.qualcomm.com> Patchwork: https://patchwork.freedesktop.org/patch/682939/ Message-ID: <20251022222039.9937-1-robin.clark@oss.qualcomm.com>
1 parent 73b7e48 commit 00d5f09

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/gpu/drm/msm/msm_gem_vma.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1407,7 +1407,7 @@ msm_ioctl_vm_bind(struct drm_device *dev, void *data, struct drm_file *file)
14071407
* Maybe we could allow just UNMAP ops? OTOH userspace should just
14081408
* immediately close the device file and all will be torn down.
14091409
*/
1410-
if (to_msm_vm(ctx->vm)->unusable)
1410+
if (to_msm_vm(msm_context_vm(dev, ctx))->unusable)
14111411
return UERR(EPIPE, dev, "context is unusable");
14121412

14131413
/*

0 commit comments

Comments
 (0)