Re: [PATCH v2] drm/msm/dsi: Add missing check for alloc_ordered_workqueue

2023-01-09 Thread Dhruva Gole
On 09/01/23 08:20, Jiasheng Jiang wrote: Add check for the return value of alloc_ordered_workqueue as it may return NULL pointer and cause NULL pointer dereference. Moreover, change the "goto fail" into "return ret" and drop the "fail" label since they are the same. Signed-off-by: Jiasheng Ji

Re: [PATCH v2] drm/msm/dsi: Add missing check for alloc_ordered_workqueue

2023-01-09 Thread Dmitry Baryshkov
On Mon, 9 Jan 2023 at 04:51, Jiasheng Jiang wrote: > > Add check for the return value of alloc_ordered_workqueue as it may return > NULL pointer and cause NULL pointer dereference. > Moreover, change the "goto fail" into "return ret" and drop the "fail" > label since they are the same. > > Signed-

[PATCH v2] drm/msm/dsi: Add missing check for alloc_ordered_workqueue

2023-01-08 Thread Jiasheng Jiang
Add check for the return value of alloc_ordered_workqueue as it may return NULL pointer and cause NULL pointer dereference. Moreover, change the "goto fail" into "return ret" and drop the "fail" label since they are the same. Signed-off-by: Jiasheng Jiang --- Changelog: v1 -> v2: 1. Change the