[PATCH] drm/simpledrm: Fix an NULL vs IS_ERR() bug
Thomas Zimmermann
tzimmermann at suse.de
Wed Feb 1 10:32:14 UTC 2023
Am 26.01.23 um 17:18 schrieb Thierry Reding:
> On Thu, Jan 26, 2023 at 12:28:44PM +0300, Dan Carpenter wrote:
>> 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 at gmail.com>
>> ---
>> drivers/gpu/drm/tiny/simpledrm.c | 4 ++--
>> 1 file changed, 2 insertions(+), 2 deletions(-)
>
> Good catch! Applied to drm-misc-next, thanks.
I have cherry-picked the patch into drm-misc-next-fixes.
>
> Thierry
--
Thomas Zimmermann
Graphics Driver Developer
SUSE Software Solutions Germany GmbH
Maxfeldstr. 5, 90409 Nürnberg, Germany
(HRB 36809, AG Nürnberg)
Geschäftsführer: Ivo Totev
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 840 bytes
Desc: OpenPGP digital signature
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20230201/5a8d9164/attachment.sig>
More information about the dri-devel
mailing list