OSDN Git Service

nouveau: restore check that avoids multiple user bos per kernel bo
authorBen Skeggs <bskeggs@redhat.com>
Wed, 6 May 2015 04:34:22 +0000 (14:34 +1000)
committerBen Skeggs <bskeggs@redhat.com>
Wed, 6 May 2015 04:50:07 +0000 (14:50 +1000)
commit812e8fe6ce46d733c30207ee26c788c61f546294
tree8e31fc01e79dbb167d08da1cb67dd3c23eb177fc
parentb4defea65fac690aefbe5348ff6ac2976e0ee090
nouveau: restore check that avoids multiple user bos per kernel bo

Lost in 5ea6f1c32628887c9df0c53bc8c199eb12633fec, triggering fdo#89842.

Unlike the PRIME fd->handle interfaces, the GEM_OPEN interface doesn't
do anything at the kernel level to prevent this situation occuring,
and we end up with multiple GEM handles for a single kernel buffer.

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