diff options
author | Thierry Reding <thierry.reding@avionic-design.de> | 2012-10-20 12:32:47 +0200 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2012-10-23 02:14:58 +0200 |
commit | 028132451667ffd25b6814d47a622ec03cb8cba7 (patch) | |
tree | 6c73fe777af9c267263e58dc040f339fccc9d30f /drivers/gpu/drm/drm_info.c | |
parent | drm: fb: cma: Fix typo in debug message (diff) | |
download | linux-028132451667ffd25b6814d47a622ec03cb8cba7.tar.xz linux-028132451667ffd25b6814d47a622ec03cb8cba7.zip |
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 <thierry.reding@avionic-design.de>
Acked-by: Sascha Hauer <s.hauer@pengutronix.de>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/drm_info.c')
0 files changed, 0 insertions, 0 deletions