diff options
author | Colin Ian King | 2019-09-18 11:11:56 +0100 |
---|---|---|
committer | Marc Kleine-Budde | 2019-11-04 21:47:23 +0100 |
commit | db1a804cca6fe0cea9dea888d50dda134713c340 (patch) | |
tree | cd71ea3ee0737904a133bf93ad059cf24a5ee767 /kernel/ptrace.c | |
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>
Diffstat (limited to 'kernel/ptrace.c')
0 files changed, 0 insertions, 0 deletions