drm/etnaviv: NULL vs IS_ERR() buf in etnaviv_core_dump()
authorDan Carpenter <dan.carpenter@oracle.com>
Mon, 14 Jan 2019 10:49:46 +0000 (13:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 29 Jan 2020 09:24:11 +0000 (10:24 +0100)
commit5d1618ee8fea3c419d4fe1f5ed197016ee717e07
treeb4b914c18f8c6c2d598ab1fcf8ea466ddab66629
parent2f1ba897ed0f4b9b124ab2afa220162a98257436
drm/etnaviv: NULL vs IS_ERR() buf in etnaviv_core_dump()

[ Upstream commit f8261c376e7f8cb9024af5a6c54be540c7f9108e ]

The etnaviv_gem_get_pages() never returns NULL.  It returns error
pointers on error.

Fixes: a8c21a5451d8 ("drm/etnaviv: add initial etnaviv DRM driver")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/etnaviv/etnaviv_dump.c