commit | db1a804cca6fe0cea9dea888d50dda134713c340 | [log] [tgz] |
---|---|---|
author | Colin Ian King <colin.king@canonical.com> | Wed Sep 18 11:11:56 2019 +0100 |
committer | Marc Kleine-Budde <mkl@pengutronix.de> | Mon Nov 04 21:47:23 2019 +0100 |
tree | cd71ea3ee0737904a133bf93ad059cf24a5ee767 | |
parent | b5018be6d5dd9dd257bf8236298daac8b1262750 [diff] |
can: j1939: fix resource leak of skb on error return paths Currently the error return paths do not free skb and this results in a memory leak. Fix this by freeing them before the return. Addresses-Coverity: ("Resource leak") Fixes: 9d71dd0c7009 ("can: add support of SAE J1939 protocol") Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Oleksij Rempel <o.rempel@pengutronix.de> Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>