]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit
can: m_can: Fix freeing of can device from peripherials
authorDan Murphy <dmurphy@ti.com>
Thu, 27 Feb 2020 18:38:29 +0000 (12:38 -0600)
committerMarc Kleine-Budde <mkl@pengutronix.de>
Sun, 15 Nov 2020 17:33:45 +0000 (18:33 +0100)
commit85816aba460ceebed0047381395615891df68c8f
treedb4a851be83d2997c0fb1698b77b5f8ad0956134
parenta8c22f5b0c689a29f45ef4a110d09fd391debcbc
can: m_can: Fix freeing of can device from peripherials

Fix leaking netdev device from peripherial devices. The call to allocate the
netdev device is made from and managed by the peripherial.

Fixes: f524f829b75a ("can: m_can: Create a m_can platform framework")
Reported-by: Marc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: Dan Murphy <dmurphy@ti.com>
Link: http://lore.kernel.org/r/20200227183829.21854-2-dmurphy@ti.com
Signed-off-by: Marc Kleine-Budde <mkl@pengutronix.de>
drivers/net/can/m_can/m_can.c
drivers/net/can/m_can/m_can_platform.c
drivers/net/can/m_can/tcan4x5x.c