Skip to content
Unverified Commit 0e8b9f25 authored by Zongmin Zhou's avatar Zongmin Zhou Committed by Maxime Ripard
Browse files

drm/qxl: prevent memory leak



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: default avatarZongmin Zhou <zhouzongmin@kylinos.cn>
Link: https://lore.kernel.org/r/20230801025309.4049813-1-zhouzongmin@kylinos.cn


Reviewed-by: default avatarDave Airlie <airlied@redhat.com>
Signed-off-by: default avatarMaxime Ripard <mripard@kernel.org>
parent 101c9f63
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment