Re: [PATCH] can: ti_hecc: Fix memleak in ti_hecc_probe

2020-11-14 Thread Marc Kleine-Budde
On 11/14/20 12:17 PM, Zhang Qilong wrote: > In the error handling, we should goto the probe_exit_candev > to free ndev to prevent memory leak. > > Fixes: dabf54dd1c63 ("can: ti_hecc: Convert TI HECC driver to DT only driver") > Signed-off-by: Zhang Qilong Added to linux-can/testing. Tnx, Marc

[PATCH] can: ti_hecc: Fix memleak in ti_hecc_probe

2020-11-14 Thread Zhang Qilong
In the error handling, we should goto the probe_exit_candev to free ndev to prevent memory leak. Fixes: dabf54dd1c63 ("can: ti_hecc: Convert TI HECC driver to DT only driver") Signed-off-by: Zhang Qilong --- drivers/net/can/ti_hecc.c | 13 - 1 file changed, 8 insertions(+), 5 deletio