]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit8283a1b39cfa101b38bf4acf97d7aa77ad1266a6
tree6e64ab8ddfa62e7699f8ae2b606fa22be7430683
parent4fc0147c90c2fdb38ff66b9be3c03fe5a640ec7a
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