
From: Zhen Lei <thunder.leizhen@huawei.com> hulk inclusion category: bugfix bugzilla: 51531 CVE: NA ------------------------------------------------------------------------- The return type of ath10k_usb_free_urb_to_pipe() is void, "return NULL" is incorrect. Fixes: d98175bb2847 ("Fix a NULL-ptr-deref bug in ath10k_usb_alloc_urb_from_pipe") Signed-off-by: Zhen Lei <thunder.leizhen@huawei.com> Signed-off-by: Yang Yingliang <yangyingliang@huawei.com> --- drivers/net/wireless/ath/ath10k/usb.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/net/wireless/ath/ath10k/usb.c b/drivers/net/wireless/ath/ath10k/usb.c index 0fae5b12ba14d..16d5fe6d1e2e4 100644 --- a/drivers/net/wireless/ath/ath10k/usb.c +++ b/drivers/net/wireless/ath/ath10k/usb.c @@ -72,7 +72,7 @@ static void ath10k_usb_free_urb_to_pipe(struct ath10k_usb_pipe *pipe, /* bail if this pipe is not initialized */ if (!pipe->ar_usb) - return NULL; + return; spin_lock_irqsave(&pipe->ar_usb->cs_lock, flags); -- 2.25.1