[PATCH] drm/qxl: prevent memory leak

Zongmin Zhou zhouzongmin at kylinos.cn
Wed Nov 8 07:01:24 UTC 2023


Thanks for your reply.

Best regards!

On 2023/11/6 17:49, Maxime Ripard wrote:
> Hi,
>
> On Wed, Nov 01, 2023 at 12:58:17PM +1000, Dave Airlie wrote:
>> On Wed, 22 Mar 2023 at 19:04, Zongmin Zhou <zhouzongmin at kylinos.cn> wrote:
>>> The allocated memory for qdev->dumb_heads should be released
>>> in qxl_destroy_monitors_object before qxl suspend.
>>> otherwise,qxl_create_monitors_object will be called to
>>> reallocate memory for qdev->dumb_heads after qxl resume,
>>> it will cause memory leak.
>>>
>>> Signed-off-by: Zongmin Zhou<zhouzongmin at kylinos.cn>
>> Sorry for nobody picking up on this, qxl isn't really well staffed,
>>
>> Reviewed-by: Dave Airlie <airlied at redhat.com>
>>
>> Could one of the misc maintainers pick this up?
> I just applied it to drm-misc-fixes
>
> Maxime


More information about the dri-devel mailing list