staging:rtl8712: avoid skb_clone after skb allocation fail
authorIvan Safonov <insafonov@gmail.com>
Sun, 31 May 2020 11:05:47 +0000 (14:05 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 18 Jun 2020 07:59:31 +0000 (09:59 +0200)
commit9bea6eb3f59cb2fad8b46d91c666a17d0aa53456
tree6e64ab8ddfa62e7699f8ae2b606fa22be7430683
parent9e43eed45a48042573a5f3f27ccc15f8f9bb42e0
staging:rtl8712: avoid 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/20200531110548.9318-1-insafonov@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/rtl8712_recv.c