Re: [PATCH] drm/amd/display: Fix some use after free bugs

2020-02-05 Thread Alex Deucher
Applied. Thanks! Alex On Wed, Feb 5, 2020 at 1:44 PM Bhawanpreet Lakha wrote: > > Reviewed-by: Bhawanpreet Lakha > > On 2020-02-05 1:38 p.m., Dan Carpenter wrote: > > These frees need to be re-ordered so that we don't dereference "hdcp_work" > > right after it's freed. Also in hdcp_create_wor

Re: [PATCH] drm/amd/display: Fix some use after free bugs

2020-02-05 Thread Bhawanpreet Lakha
Reviewed-by: Bhawanpreet Lakha On 2020-02-05 1:38 p.m., Dan Carpenter wrote: These frees need to be re-ordered so that we don't dereference "hdcp_work" right after it's freed. Also in hdcp_create_workqueue() there is a problem that "hdcp_work" can be NULL if the allocation fails so it would le

[PATCH] drm/amd/display: Fix some use after free bugs

2020-02-05 Thread Dan Carpenter
These frees need to be re-ordered so that we don't dereference "hdcp_work" right after it's freed. Also in hdcp_create_workqueue() there is a problem that "hdcp_work" can be NULL if the allocation fails so it would lead to a NULL dereference in the cleanup code. Fixes: 9aeb8a134a0a ("drm/amd/disp