]> git.karo-electronics.de Git - linux-beck.git/commit
gpu: ion: Fix bug in ion_system_heap map_user
authorRebecca Schultz Zavin <rebecca@android.com>
Fri, 13 Dec 2013 22:24:19 +0000 (14:24 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:40 +0000 (08:55 -0800)
commitb308a7c5cfef6e0d15b8872982645313f415b229
tree58d0d35a428012cc53168f18972615b1dab3da1f
parent8fae831288210dae626e212aaab459154b65ed79
gpu: ion: Fix bug in ion_system_heap map_user

When the requested mmap length was not an integer number of
chunks or the buffer, or if an offset was provided, a bug
would cause extra or incorrect pages of the buffer to be mapped.

Signed-off-by: Rebecca Schultz Zavin <rebecca@android.com>
[jstultz: modified patch to apply to staging directory]
Signed-off-by: John Stultz <john.stultz@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/android/ion/ion_system_heap.c