Re: [PATCH] drm/solomon: Use kmalloc_array() instead of kmalloc()

Javier Martinez Canillas
2025-10-21T07:51:15Z

Mehdi Ben Hadj Khelifa <mehdi.benhadjkhelifa@gmail.com> writes:

Hello Mehdi,

> On 10/20/25 9:56 PM, Shuah Khan wrote:

[...]

>>> I have a raspberrypi zero 2 wh that i'm using in combination with the
>>> ssd1306 OLED panel via I2C to test it's rendering and it's working
>>> properly by using modetest and seeing no regressions or warnings in
>>> dmesg.
>>>
>>
>> Send v2 with all these details and why this change is needed
>> in the first place.
>>
> Okay, I will do that as soon as possible.> When and how does this
> potential problem trigger? Is this a
>> theoretical or does this happen in this code path and how?
>> Next time include all of these details people understand the
>> problem better.
>>
> We'll do in the next iteration.Thanks
>

A similar patch was posted by another developer a couple of weeks
ago and is now queued already in the drm-misc-next branch:

https://cgit.freedesktop.org/drm/drm-misc/commit/?id=940dd88c5f5bdb1f3e19873a856a677ebada63a9

--
Best regards,

Javier Martinez Canillas
Core Platforms
Red Hat