libertas: Fix a double free in if_spi_c2h_data()
authorDan Williams <dcbw@redhat.com>
Wed, 24 Jul 2019 14:38:15 +0000 (09:38 -0500)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 6 Aug 2019 12:35:59 +0000 (15:35 +0300)
commit3915a252ce71b836a830bcc537220389a3acf3a5
tree0a121c8462c49e657cfa944bbc6c145ae3d0c4de
parentb95c732234fa40319c6aae2db6b35e9a7f41d79c
libertas: Fix a double free in if_spi_c2h_data()

The lbs_process_rxed_packet() frees the skb.  It didn't originally, but
we fixed it in commit f54930f36311 ("libertas: don't leak skb on receive
error").

Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Dan Williams <dcbw@redhat.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/marvell/libertas/if_spi.c