From: Thierry Reding Date: Sat, 20 Oct 2012 10:32:47 +0000 (+0000) Subject: drm: fb: cma: Fail gracefully on allocation failure X-Git-Tag: v3.7-rc3~45^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=028132451667ffd25b6814d47a622ec03cb8cba7;p=pandora-kernel.git drm: fb: cma: Fail gracefully on allocation failure 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: Thierry Reding Acked-by: Sascha Hauer Signed-off-by: Dave Airlie --- Reading git-diff-tree failed