]> git.baikalelectronics.ru Git - kernel.git/commit
can: ti_hecc: Fix memleak in ti_hecc_probe
authorZhang Qilong <zhangqilong3@huawei.com>
Sat, 14 Nov 2020 11:17:08 +0000 (19:17 +0800)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 15 Nov 2020 17:24:35 +0000 (18:24 +0100)
commit67ef8f75dd3cfed35cbf3423e6f84c7532ef8e97
treea78f0205d647afa26ff231c60c54babe0f4b930f
parentb65cd3b256fe88df0580620bf674ca413e4f711a
can: ti_hecc: Fix memleak in ti_hecc_probe

In the error handling, we should goto the probe_exit_candev
to free ndev to prevent memory leak.

Fixes: c81a4adcbdbb ("can: ti_hecc: Convert TI HECC driver to DT only driver")
Signed-off-by: Zhang Qilong <zhangqilong3@huawei.com>
Link: https://lore.kernel.org/r/20201114111708.3465543-1-zhangqilong3@huawei.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/ti_hecc.c