在 2025/8/19 21:20, Daniel Thompson 写道:
[You don't often get email from dan...@riscstar.com. Learn why this is 
important at https://aka.ms/LearnAboutSenderIdentification ]

On Tue, Aug 19, 2025 at 11:58:03AM +0800, Qianfeng Rong wrote:
Replace calls of devm_kzalloc() with devm_kcalloc() in led_bl_get_leds()
and led_bl_parse_levels() for safer memory allocation with built-in
overflow protection.
Signed-off-by: Qianfeng Rong <rongqianf...@vivo.com>
---
I assume you scanned drivers/video/backlight to look for similar code
patterns in other backlight drivers? If you did it would have been
really helpful to say so in this part of the patch (because in it's
absence I had to do that myself).
Yes, I scanned the entire system and there was only this one in drivers/video/backlight.

However, the code changes are fine:
Reviewed-by: Daniel Thompson (RISCstar) <dani...@kernel.org>

Best regards,
Qianfeng

Reply via email to