On Wed, Jan 04, 2023 at 10:29:01PM +0800, Jiasheng Jiang wrote: > Add check for the return value of alloc_workqueue since it may return > NULL pointer. > Moreover, add destroy_workqueue when rtw89_load_firmware fails. > > Fixes: e3ec7017f6a2 ("rtw89: add Realtek 802.11ax driver") > Signed-off-by: Jiasheng Jiang <jiasheng@xxxxxxxxxxx> > --- > CHangelog: > > v1 -> v2: > > 1. Add destroy_workqueue when rtw89_load_firmware fails. > --- > drivers/net/wireless/realtek/rtw89/core.c | 3 +++ > 1 file changed, 3 insertions(+) > Thanks, Reviewed-by: Leon Romanovsky <leonro@xxxxxxxxxx>