Skip to content
Commit 85816aba authored by Dan Murphy's avatar Dan Murphy Committed by Marc Kleine-Budde
Browse files

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: f524f829

 ("can: m_can: Create a m_can platform framework")
Reported-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
Signed-off-by: default avatarDan Murphy <dmurphy@ti.com>
Link: http://lore.kernel.org/r/20200227183829.21854-2-dmurphy@ti.com
Signed-off-by: default avatarMarc Kleine-Budde <mkl@pengutronix.de>
parent a8c22f5b
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment