From: Chris Wilson Date: Mon, 26 Aug 2013 22:50:55 +0000 (-0300) Subject: drm/i915: Pin pages whilst mapping the dma-buf X-Git-Tag: v3.12-rc1~61^2~1^2~15 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5cfacdedb1a94efd29faeaab53f939554a3f5943;p=pandora-kernel.git drm/i915: Pin pages whilst mapping the dma-buf As we attempt to kmalloc after calling get_pages, there is a possibility that the shrinker may reap the pages we just acquired. To prevent this we need to increment the pages_pin_count early, so rearrange the code and error paths to make it so. Signed-off-by: Chris Wilson Reviewed-by: Damien Lespiau Signed-off-by: Daniel Vetter --- Reading git-diff-tree failed