staging:rtl8723bs: eliminate usage of skb_clone after skb allocation fail
authorIvan Safonov <insafonov@gmail.com>
Sat, 2 May 2020 15:19:05 +0000 (18:19 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 5 May 2020 10:31:18 +0000 (12:31 +0200)
commit9adbb49e90e451f38e159fb262731b7567d9db66
treef98776fbf9d7b367245ef1a50fe5a2b2064303e7
parent70458c20049f16a5512bf89ac5137f79d3049f91
staging:rtl8723bs: eliminate usage of skb_clone after skb allocation fail

The skb allocated when out of memory
is likely to be discarded during subsequent processing.

Signed-off-by: Ivan Safonov <insafonov@gmail.com>
Link: https://lore.kernel.org/r/20200502151905.43663-1-insafonov@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723bs_recv.c
drivers/staging/rtl8723bs/os_dep/recv_linux.c