]> git.baikalelectronics.ru Git - kernel.git/commit
staging: r8188eu: don't copy ra and ta before we fail
authorMartin Kaiser <martin@kaiser.cx>
Sun, 3 Apr 2022 16:54:33 +0000 (18:54 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 4 Apr 2022 14:32:42 +0000 (16:32 +0200)
commit0774e131d2b08cbcbbcfec4d0e9d5130e5ee4fb8
treee80cb580dc58ef419b216f532944f7e63f1f9cae
parentfcd60555b7eb19c071a9c33ff74ccffb2073ae99
staging: r8188eu: don't copy ra and ta before we fail

In validate_recv_data_frame, we return an error if both to_ds and
from_ds are set in the incoming data frame. There's no need to populate
patrib->ra and ta before we return. The caller will free the received
frame, including pattrib.

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