wifi: libertas: Fix possible refcount leak in if_usb_probe()
stable inclusion from stable-v5.10.137 commit 97e5d3e46a3a2100253a9717a4df98d68aeb10b8 category: bugfix bugzilla: https://gitee.com/openeuler/kernel/issues/I60PLB Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=97e5d3e46a3a2100253a9717a4df98d68aeb10b8 -------------------------------- [ Upstream commit 6fd57e1d ] usb_get_dev will be called before lbs_get_firmware_async which means that usb_put_dev need to be called when lbs_get_firmware_async fails. Fixes: ce84bb69 ("libertas USB: convert to asynchronous firmware loading") Signed-off-by:Hangyu Hua <hbh25y@gmail.com> Signed-off-by:
Kalle Valo <kvalo@kernel.org> Link: https://lore.kernel.org/r/20220620092350.39960-1-hbh25y@gmail.com Link: https://lore.kernel.org/r/20220622113402.16969-1-colin.i.king@gmail.com Signed-off-by:
Sasha Levin <sashal@kernel.org> Signed-off-by:
Zheng Zengkai <zhengzengkai@huawei.com> Reviewed-by:
Wei Li <liwei391@huawei.com>
Loading
Please sign in to comment