[PATCH] backlight: pwm_bl: Avoid open coded arithmetic in memory allocation
Uwe Kleine-König
u.kleine-koenig at pengutronix.de
Tue Feb 8 08:43:18 UTC 2022
On Mon, Feb 07, 2022 at 09:31:00AM +0000, Lee Jones wrote:
> On Mon, 07 Feb 2022, Uwe Kleine-König wrote:
>
> > On Sat, Feb 05, 2022 at 08:40:48AM +0100, Christophe JAILLET wrote:
> > > kmalloc_array()/kcalloc() should be used to avoid potential overflow when
> > > a multiplication is needed to compute the size of the requested memory.
> > >
> > > So turn a kzalloc()+explicit size computation into an equivalent kcalloc().
> > >
> > > Signed-off-by: Christophe JAILLET <christophe.jaillet at wanadoo.fr>
> >
> > LGTM
> >
> > Acked-by: Christophe JAILLET <christophe.jaillet at wanadoo.fr>
> >
> > Thanks
> > Uwe
>
> I am totally confused!
An rightfully so. Copy-paste-fail, this was supposed to be
Acked-by: Uwe Kleine-König <u.kleine-koenig at pengutronix.de>
Sorry!
Uwe
--
Pengutronix e.K. | Uwe Kleine-König |
Industrial Linux Solutions | https://www.pengutronix.de/ |
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 488 bytes
Desc: not available
URL: <https://lists.freedesktop.org/archives/dri-devel/attachments/20220208/4864cb2d/attachment.sig>
More information about the dri-devel
mailing list