drm/i915: Protect private gem objects from truncate (such as imported dmabuf)
authorChris Wilson <chris@chris-wilson.co.uk>
Sat, 11 Aug 2012 14:41:05 +0000 (15:41 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Fri, 24 Aug 2012 00:04:31 +0000 (02:04 +0200)
commit4d6294bf77834276d41b51154a18663b0a8f2063
tree05d5ade15309741955af9dbced1af353abbae3c0
parent86a1ee26bb60e1ab8984e92f0e9186c354670aed
drm/i915: Protect private gem objects from truncate (such as imported dmabuf)

If the object has no backing shmemfs filp, then we obviously cannot
perform a truncation operation upon it.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem.c