drm/simpledrm: Fix an NULL vs IS_ERR() bug
authorDan Carpenter <error27@gmail.com>
Thu, 26 Jan 2023 09:28:44 +0000 (12:28 +0300)
committerThomas Zimmermann <tzimmermann@suse.de>
Wed, 1 Feb 2023 10:16:46 +0000 (11:16 +0100)
commit9bdd9424bfec5eebf38dd4928f2d171ec7b1a57e
treee5da13bd2dde6a4aab5c8eb91f87cfc5ea816de9
parentaebd8f0c6f8280ba35bc989f4a9ea47469d3589a
drm/simpledrm: Fix an NULL vs IS_ERR() bug

The devm_memremap() function doesn't return NULL, it returns error
pointers.

Fixes: 9a10c7e6519b ("drm/simpledrm: Add support for system memory framebuffers")
Signed-off-by: Dan Carpenter <error27@gmail.com>
Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Link: https://patchwork.freedesktop.org/patch/msgid/Y9JHzImRcUaa0mi1@kili
(cherry picked from commit e566507bf2f460967f53030ef84b67ef26dcaf8e)
Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de>
drivers/gpu/drm/tiny/simpledrm.c