]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: exit straight away if we have no pspoll frame
authorMartin Kaiser <martin@kaiser.cx>
Sun, 3 Apr 2022 16:45:24 +0000 (18:45 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Apr 2022 14:31:07 +0000 (16:31 +0200)
commit17a918a2bc914857b9a08d6ccb86072f10c57fad
tree12ca68f241ba183da8f5d5e31a024b5922fef333
parent697ea257a41c63885ee5d9efd86dab760b2daf9b
staging: r8188eu: exit straight away if we have no pspoll frame

validate_recv_ctrl_frame wraps nearly all of its code into a large
if (pspoll) { ... } clause.

Revert this condition and exit if the incoming frame is not a pspoll
frame.

Signed-off-by: Martin Kaiser <martin@kaiser.cx>
Link: https://lore.kernel.org/r/20220403164526.357371-4-martin@kaiser.cx
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/r8188eu/core/rtw_recv.c