From 5cfacdedb1a94efd29faeaab53f939554a3f5943 Mon Sep 17 00:00:00 2001 From: Chris Wilson Date: Mon, 26 Aug 2013 19:50:55 -0300 Subject: [PATCH] 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-format-patch failed