[PATCH 2/2] drm: fb: cma: Fail gracefully on allocation failure

2012-10-21 Thread Sascha Hauer
On Sat, Oct 20, 2012 at 12:32:47PM +0200, Thierry Reding wrote: > The drm_gem_cma_create() function never returns NULL but rather an error > encoded in the return value using the ERR_PTR() macro. Callers therefore > need to check for errors using the IS_ERR() macro. This change allows > drivers to

Re: [PATCH 2/2] drm: fb: cma: Fail gracefully on allocation failure

2012-10-21 Thread Sascha Hauer
On Sat, Oct 20, 2012 at 12:32:47PM +0200, Thierry Reding wrote: > The drm_gem_cma_create() function never returns NULL but rather an error > encoded in the return value using the ERR_PTR() macro. Callers therefore > need to check for errors using the IS_ERR() macro. This change allows > drivers to

[PATCH 2/2] drm: fb: cma: Fail gracefully on allocation failure

2012-10-20 Thread Thierry Reding
The drm_gem_cma_create() function never returns NULL but rather an error encoded in the return value using the ERR_PTR() macro. Callers therefore need to check for errors using the IS_ERR() macro. This change allows drivers to handle contiguous DMA allocation failures gracefully. Signed-off-by: Th

[PATCH 2/2] drm: fb: cma: Fail gracefully on allocation failure

2012-10-20 Thread Thierry Reding
The drm_gem_cma_create() function never returns NULL but rather an error encoded in the return value using the ERR_PTR() macro. Callers therefore need to check for errors using the IS_ERR() macro. This change allows drivers to handle contiguous DMA allocation failures gracefully. Signed-off-by: Th