(subset) [PATCH v4] backlight: pm8941: Add NULL check in wled_configure()

henry martin bsdhenrymartin at gmail.com
Fri Apr 4 15:19:09 UTC 2025


Noted, thanks for the feedback! I’ll send subsequent versions as
independent patches in the future.

Best regards,
Henry


Lee Jones <lee at kernel.org> 于2025年4月4日周五 23:13写道:
>
> On Fri, 04 Apr 2025, Lee Jones wrote:
>
> > On Tue, 01 Apr 2025 17:16:47 +0800, Henry Martin wrote:
> > > devm_kasprintf() returns NULL when memory allocation fails. Currently,
> > > wled_configure() does not check for this case, which results in a NULL
> > > pointer dereference.
> > >
> > > Add NULL check after devm_kasprintf() to prevent this issue.
> > >
> > >
> > > [...]
> >
> > Applied, thanks!
> >
> > [1/1] backlight: pm8941: Add NULL check in wled_configure()
> >       commit: b0fdeb96ead46de57a6226bc3a3ac7f9b50c0ace
>
> Next time, please send subsequent patch versions independently.
>
> --
> Lee Jones [李琼斯]


More information about the dri-devel mailing list