diff options
author | Zhang Changzhong <[email protected]> | 2022-11-11 20:11:23 +0800 |
---|---|---|
committer | Marc Kleine-Budde <[email protected]> | 2022-11-24 16:10:18 +0100 |
commit | 1eca1d4cc21b6d0fc5f9a390339804c0afce9439 (patch) | |
tree | ca3fd82d1c08d090011da347770c41ec2db6e1a2 /tools/perf/scripts/python/libxed.py | |
parent | 709cb2f9ed2006eb1dc4b36b99d601cd24889ec4 (diff) |
can: m_can: pci: add missing m_can_class_free_dev() in probe/remove methods
In m_can_pci_remove() and error handling path of m_can_pci_probe(),
m_can_class_free_dev() should be called to free resource allocated by
m_can_class_allocate_dev(), otherwise there will be memleak.
Fixes: cab7ffc0324f ("can: m_can: add PCI glue driver for Intel Elkhart Lake")
Signed-off-by: Zhang Changzhong <[email protected]>
Reviewed-by: Jarkko Nikula <[email protected]>
Link: https://lore.kernel.org/all/[email protected]
Signed-off-by: Marc Kleine-Budde <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/libxed.py')
0 files changed, 0 insertions, 0 deletions