intel: Clean up mmaps on freeing the buffer
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 5 Dec 2011 10:39:49 +0000 (10:39 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 5 Dec 2011 10:43:13 +0000 (10:43 +0000)
commit5c5332bbc38ff25c06081ac53a15ad583ad4cbc4
treec89a6bf442fc63f076186372be73bb4b1473d967
parente73161a02b604742e3da3bca8f13cff81276de43
intel: Clean up mmaps on freeing the buffer

As a precautionary measure munmap on buffer free so that we never leak
the vma. Also include a warning during debugging.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
intel/intel_bufmgr_gem.c