CHROMIUM: drm/rockchip: Fix the call to drm_gem_put_pages()
authorTomasz Figa <tfiga@chromium.org>
Thu, 8 Sep 2016 09:52:00 +0000 (18:52 +0900)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 7 Dec 2016 06:32:02 +0000 (14:32 +0800)
commit909a224e0c038fb9a99353dc9ef8ad5cc67b1f4a
tree63881f96240165aeb1e69a3d96fd50dc3f880197
parentcacb6f5876a70cf54cb67f4bb9c4284bd88304b9
CHROMIUM: drm/rockchip: Fix the call to drm_gem_put_pages()

When freeing the buffer we don't have any means of determining if the
buffer was read or written, so we must assume both and pass true for
both arguments of drm_gem_put_pages(). Let's fix the code which
currently passes false.

BUG=chrome-os-partner:56378
TEST=while true; do backlight_dbus_tool --set --percent=0 && sleep 8 &&
 backlight_dbus_tool --set --percent=100 && sleep 3 ; done

Change-Id: I7da2fd81e7e728e0ef242837b70819c4a3aee7bf
Signed-off-by: Tomasz Figa <tfiga@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/382934
Reviewed-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Randy Li <randy.li@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_gem.c