OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e61e0f0
)
drm/vkms: Fix vmap_count increment position
author
Haneen Mohammed
<hamohammed.sa@gmail.com>
Wed, 1 Aug 2018 09:08:07 +0000
(12:08 +0300)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Wed, 8 Aug 2018 08:19:54 +0000
(10:19 +0200)
Move vmap_count out of the conditional statement since it needs
to be updated for every successful call to vkms_gem_vmap.
Signed-off-by: Haneen Mohammed <hamohammed.sa@gmail.com>
Fixes:
bb112b14af8d
("drm/vkms: Add functions to map/unmap GEM backing storage")
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Link:
https://patchwork.freedesktop.org/patch/msgid/20180801090807.GA4611@haneenDRM
drivers/gpu/drm/vkms/vkms_gem.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/vkms/vkms_gem.c
b/drivers/gpu/drm/vkms/vkms_gem.c
index
c55a571
..
d04e988
100644
(file)
--- a/
drivers/gpu/drm/vkms/vkms_gem.c
+++ b/
drivers/gpu/drm/vkms/vkms_gem.c
@@
-239,10
+239,9
@@
int vkms_gem_vmap(struct drm_gem_object *obj)
vkms_obj->vaddr = vmap(pages, n_pages, VM_MAP, PAGE_KERNEL);
if (!vkms_obj->vaddr)
goto err_vmap;
-
- vkms_obj->vmap_count++;
}
+ vkms_obj->vmap_count++;
goto out;
err_vmap: