drm/vkms: Fix vmap_count increment position
authorHaneen Mohammed <hamohammed.sa@gmail.com>
Wed, 1 Aug 2018 09:08:07 +0000 (12:08 +0300)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Wed, 8 Aug 2018 08:19:54 +0000 (10:19 +0200)
commit31e63d31eaf066651efac299913591b04c5aaa18
treedecd2330e521239a107b486a1239c8d3b6abc3dc
parente61e0f07ef0d0b9312269582542f6627bc35c799
drm/vkms: Fix vmap_count increment position

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