Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

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: 2e6a8a1fe2b2 ("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>

Rob Clark 00d5f097 73b7e48a

+1 -1
+1 -1
drivers/gpu/drm/msm/msm_gem_vma.c
··· 1407 1407 * Maybe we could allow just UNMAP ops? OTOH userspace should just 1408 1408 * immediately close the device file and all will be torn down. 1409 1409 */ 1410 - if (to_msm_vm(ctx->vm)->unusable) 1410 + if (to_msm_vm(msm_context_vm(dev, ctx))->unusable) 1411 1411 return UERR(EPIPE, dev, "context is unusable"); 1412 1412 1413 1413 /*