diff options
author | Johan Hovold <[email protected]> | 2021-12-22 11:48:43 +0100 |
---|---|---|
committer | Marc Kleine-Budde <[email protected]> | 2022-01-08 22:46:10 +0100 |
commit | ced4913efb0acc844ed65cc01d091a85d83a2082 (patch) | |
tree | 5f559d4e218c79128616ddd81218cb2257b2faed /net/lapb/lapb_in.c | |
parent | 6dc9a23e29061e50c36523270de60039ccf536fa (diff) |
can: softing_cs: softingcs_probe(): fix memleak on registration failure
In case device registration fails during probe, the driver state and
the embedded platform device structure needs to be freed using
platform_device_put() to properly free all resources (e.g. the device
name).
Fixes: 0a0b7a5f7a04 ("can: add driver for Softing card")
Link: https://lore.kernel.org/all/[email protected]
Cc: [email protected] # 2.6.38
Signed-off-by: Johan Hovold <[email protected]>
Reviewed-by: Greg Kroah-Hartman <[email protected]>
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'net/lapb/lapb_in.c')
0 files changed, 0 insertions, 0 deletions