[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <87jz71ztw1.fsf@minerva.mail-host-address-is-not-set>
Date: Wed, 30 Apr 2025 15:00:30 +0200
From: Javier Martinez Canillas <javierm@...hat.com>
To: Dan Carpenter <dan.carpenter@...aro.org>, Marcus Folkesson
<marcus.folkesson@...il.com>
Cc: Maarten Lankhorst <maarten.lankhorst@...ux.intel.com>, Maxime Ripard
<mripard@...nel.org>, Thomas Zimmermann <tzimmermann@...e.de>, David
Airlie <airlied@...il.com>, Simona Vetter <simona@...ll.ch>,
dri-devel@...ts.freedesktop.org, linux-kernel@...r.kernel.org,
kernel-janitors@...r.kernel.org
Subject: Re: [PATCH next] drm/st7571-i2c: Fix IS_ERR() vs NULL checks in
probe()
Javier Martinez Canillas <javierm@...hat.com> writes:
> Dan Carpenter <dan.carpenter@...aro.org> writes:
>
> Hello Dan,
>
>> The devm_kzalloc() function returns NULL on failure, not error pointers.
>> Also printing an error message for kmalloc() failures is against kernel
>> style so just return -ENOMEM without printing a message. (Kmalloc
>> already prints a message).
>>
>> Fixes: 4b35f0f41ee2 ("drm/st7571-i2c: add support for Sitronix ST7571 LCD controller")
>> Signed-off-by: Dan Carpenter <dan.carpenter@...aro.org>
>> ---
>
> Reviewed-by: Javier Martinez Canillas <javierm@...hat.com>
>
Pushed to drm-misc (drm-misc-next). Thanks!
--
Best regards,
Javier Martinez Canillas
Core Platforms
Red Hat
Powered by blists - more mailing lists