drm/exynos: fix return value check in lowlevel_buffer_allocate()
authorWei Yongjun <yongjun_wei@trendmicro.com.cn>
Tue, 10 Sep 2013 22:56:35 +0000 (06:56 +0800)
committerInki Dae <inki.dae@samsung.com>
Mon, 16 Sep 2013 12:57:08 +0000 (21:57 +0900)
commit662bb6992a505ad41db3c8b52b1e70934507c2e2
treeef2016ba2ab78c0f33b1d789ae712089ac17312a
parentfafb38374bfaa92bc943fba4edf73849be2968a8
drm/exynos: fix return value check in lowlevel_buffer_allocate()

In case of error, the function drm_prime_pages_to_sg() returns ERR_PTR()
and never returns NULL. The NULL test in the return value check should
be replaced with IS_ERR().

Signed-off-by: Wei Yongjun <yongjun_wei@trendmicro.com.cn>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_buf.c