drm/vkms: Release pages_lock before return
authorHaneen Mohammed <hamohammed.sa@gmail.com>
Fri, 3 Aug 2018 20:11:42 +0000 (23:11 +0300)
committerSean Paul <seanpaul@chromium.org>
Fri, 3 Aug 2018 20:14:56 +0000 (16:14 -0400)
commitbc0d332daef3fb9f58e34cb4d03d99f2c84b11cb
tree5d7c367110d18840210295d5c80f8588048a4548
parent6c234fe37c57627a5baf96f552afa1fae2b67d4d
drm/vkms: Release pages_lock before return

Release pages_lock before return when vkms_obj->vaddr is NULL.
This patch fixes: 6c234fe37c57 ("drm/vkms: Implement CRC debugfs API").

Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Signed-off-by: Sean Paul <seanpaul@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20180803201142.GA2206@haneenDRM
drivers/gpu/drm/vkms/vkms_crc.c