drm/rockchip: fix dma_alloc_attrs() error check
authorDaniel Kurtz <djkurtz@chromium.org>
Wed, 7 Jan 2015 09:27:06 +0000 (17:27 +0800)
committerMark Yao <mark.yao@rock-chips.com>
Fri, 9 Jan 2015 03:29:06 +0000 (11:29 +0800)
commit4b9a90c0b374f8f7b3ceabe3c202424c98a6c5a4
tree2ee8991dcfd90a81e0a78caf08bf6c21c18ee3c7
parentc93546a5e32bd788c22aefa072385f3784551c13
drm/rockchip: fix dma_alloc_attrs() error check

dma_alloc_attrs() returns NULL if it cannot allocate a dma buffer (or
mapping), not a negative error code.

Rerported-by: Pawel Osciak <posciak@chromium.org>
Signed-off-by: Daniel Kurtz <djkurtz@chromium.org>
Signed-off-by: Mark Yao <mark.yao@rock-chips.com>
drivers/gpu/drm/rockchip/rockchip_drm_gem.c