Commit ac8c7930 authored by Kamil Dudka's avatar Kamil Dudka Committed by Ben Skeggs

drm/nouveau: hold mutex when calling nouveau_abi16_fini()

This was the only access to cli->abi16 without holding the mutex.
Signed-off-by: default avatarKamil Dudka <kdudka@redhat.com>
parent cbfe8fa6
......@@ -865,8 +865,10 @@ nouveau_drm_preclose(struct drm_device *dev, struct drm_file *fpriv)
pm_runtime_get_sync(dev->dev);
mutex_lock(&cli->mutex);
if (cli->abi16)
nouveau_abi16_fini(cli->abi16);
mutex_unlock(&cli->mutex);
mutex_lock(&drm->client.mutex);
list_del(&cli->head);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment