aboutsummaryrefslogtreecommitdiff
path: root/init
diff options
context:
space:
mode:
authorColin Ian King2019-09-18 11:11:56 +0100
committerMarc Kleine-Budde2019-11-04 21:47:23 +0100
commitdb1a804cca6fe0cea9dea888d50dda134713c340 (patch)
treecd71ea3ee0737904a133bf93ad059cf24a5ee767 /init
parentb5018be6d5dd9dd257bf8236298daac8b1262750 (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>
Diffstat (limited to 'init')
0 files changed, 0 insertions, 0 deletions