]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
staging: r8188eu: fix endless loop in recv_func
authorMartin Kaiser <martin@kaiser.cx>
Sat, 26 Feb 2022 18:14:53 +0000 (19:14 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 8 Apr 2022 12:06:23 +0000 (14:06 +0200)
commit5e9b767c6cd44707cd118cd1ef3a3870bbb19c1d
treeac5dcd5ebcaf6ad563bbb9ed5587dbf4d52ac191
parent960a7932326b2a992e8726e9b3b02f23afe1ff64
staging: r8188eu: fix endless loop in recv_func

[ Upstream commit 1327fcf175fa63d3b7a058b8148ed7714acdc035 ]

Fix an endless loop in recv_func. If pending_frame is not NULL, we're
stuck in the while loop forever. We have to call rtw_alloc_recvframe
each time we loop.

Fixes: 15865124feed ("staging: r8188eu: introduce new core dir for RTL8188eu driver")
Reported-by: Pavel Skripkin <paskripkin@gmail.com>
Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220226181457.1138035-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/staging/r8188eu/core/rtw_recv.c