wifi: plfxlc: check for allocation failure in plfxlc_usb_wreq_async()
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 30 Oct 2023 09:03:23 +0000 (12:03 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jan 2024 23:35:19 +0000 (15:35 -0800)
commit2ed15a3a3f4a97787c2e7ba86e4b66e7a226e019
treed4455ab516c3f07ece05118c23888255d41738ce
parentddcb3b44465935f5609763c7547be7c9b52b7f09
wifi: plfxlc: check for allocation failure in plfxlc_usb_wreq_async()

[ Upstream commit 40018a8fa9aa63ca5b26e803502138158fb0ff96 ]

Check for if the usb_alloc_urb() failed.

Fixes: 68d57a07bfe5 ("wireless: add plfxlc driver for pureLiFi X, XL, XC devices")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Signed-off-by: Kalle Valo <kvalo@kernel.org>
Link: https://lore.kernel.org/r/e8d4a19a-f251-4101-a89b-607345e938cb@moroto.mountain
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/purelifi/plfxlc/usb.c