]> git.baikalelectronics.ru Git - kernel.git/commit
drm/nouveau: check kind validity against mmu object
authorBen Skeggs <bskeggs@redhat.com>
Tue, 31 Oct 2017 17:56:19 +0000 (03:56 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Thu, 2 Nov 2017 03:32:32 +0000 (13:32 +1000)
commit0fed496250e5931ba73faa439b4d9b4163a69bc1
tree25ca8f9317b098d2542f4e98e3f1fb65b55ddc8e
parent3c26f0b570ed45f22f5935b04a5c979c81e4b1f0
drm/nouveau: check kind validity against mmu object

This is already handled in the top-level gem_new() ioctl in another manner,
but this will be removed in a future commit.

Ideally we'd not need to check up-front at all, and let the VMM code handle
error checking, but there are paths in the current BO management code where
this isn't possible due to map() not always being called during BO creation,
and map() calls not being allowed to fail during buffer migration.

Signed-off-by: Ben Skeggs <bskeggs@redhat.com>
drivers/gpu/drm/nouveau/nouveau_bo.c