]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
gpu: ion: Map only the vma size given
authorLaura Abbott <lauraa@codeaurora.org>
Fri, 13 Dec 2013 22:23:49 +0000 (14:23 -0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sat, 14 Dec 2013 16:55:37 +0000 (08:55 -0800)
commit7b903e44c40fdd8300582b0791ef20b70d81178c
tree01d68828c28e28d22e27e8d401836244beb32152
parent2900cd767180e9674947101fea96e318dc9b23eb
gpu: ion: Map only the vma size given

When mapping carveout buffers into userspace, only map
the size of the vma given, not the full size of the buffer
since clients may map less than the buffer size.

Signed-off-by: Laura Abbott <lauraa@codeaurora.org>
[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_carveout_heap.c