提交 ae3a27d1 编写于 作者: D Dave Airlie 提交者: Alex Deucher

amdgpu/dm: don't use after free.

This dereference acrtc after freeing it.

Found by the kfree cocci script.
Signed-off-by: NDave Airlie <airlied@redhat.com>
Reviewed-by: NHarry Wentland <harry.wentland@amd.com>
Signed-off-by: NAlex Deucher <alexander.deucher@amd.com>
上级 d029810c
......@@ -3174,7 +3174,6 @@ int amdgpu_dm_crtc_init(struct amdgpu_display_manager *dm,
fail:
kfree(acrtc);
kfree(cursor_plane);
acrtc->crtc_id = -1;
return res;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册