Commit 53f092ab authored by Kamil Dudka's avatar Kamil Dudka Committed by Greg Kroah-Hartman

drm/nouveau: hold mutex when calling nouveau_abi16_fini()

commit ac8c7930 upstream.

This was the only access to cli->abi16 without holding the mutex.
Signed-off-by: default avatarKamil Dudka <kdudka@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 140d4baa
......@@ -863,8 +863,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