[PATCH 3/3] drm/tegra: gem: Check before freeing CMA memory

2014-11-06 Thread Thierry Reding
From: Thierry Reding dma_free_writecombine() must not be called on a buffer that couldn't be allocated. Check for a valid virtual address before attempting to free the memory to avoid a crash. Reported-by: Sean Paul Signed-off-by: Thierry Reding ---

[PATCH 3/3] drm/tegra: gem: Check before freeing CMA memory

2014-11-06 Thread Sean Paul
On Thu, Nov 6, 2014 at 10:57 AM, Thierry Reding wrote: > From: Thierry Reding > > dma_free_writecombine() must not be called on a buffer that couldn't be > allocated. Check for a valid virtual address before attempting to free > the memory to avoid a crash. > > Reported-by: Sean Paul nit: I'd