Re: net: m_can: missing mutexes in tx_work_queue and isr-handler

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On 10.12.2024 09:02:37, Prückl Thomas wrote:
> Hi Chandrasekar,
> 
> I'm using the m_can driver with the externals TCAN4550-Q1 can controller (SPI) on an IMX8MN controller.
> After some time the driver stops working.
> 
> After reviewing the driver (m_can.c) I noticed that there are not mutex locks preventing concurrent access of 
> m_can_isr and m_can_tx_work_queue.
> 
> After I added mutex_lock in these functions the driver was working fine.

Can you show us the patch?

> Is the driver really missing the locking or is it done on another level?

Marc

-- 
Pengutronix e.K.                 | Marc Kleine-Budde          |
Embedded Linux                   | https://www.pengutronix.de |
Vertretung Nürnberg              | Phone: +49-5121-206917-129 |
Amtsgericht Hildesheim, HRA 2686 | Fax:   +49-5121-206917-9   |

Attachment: signature.asc
Description: PGP signature


[Index of Archives]     [Automotive Discussions]     [Linux ARM Kernel]     [Linux ARM]     [Linux Omap]     [Fedora ARM]     [IETF Annouce]     [Security]     [Bugtraq]     [Linux]     [Linux OMAP]     [Linux MIPS]     [eCos]     [Asterisk Internet PBX]     [Linux API]     [CAN Bus]

  Powered by Linux