Re: [PATCH] can: hi311x: Acquire SPI lock on ->do_get_berr_counter

2018-05-10 Thread Marc Kleine-Budde
On 05/09/2018 02:38 PM, Lukas Wunner wrote: > hi3110_get_berr_counter() may run concurrently to the rest of the driver > but neglects to acquire the lock protecting access to the SPI device. > As a result, it and the rest of the driver may clobber each other's tx > and rx buffers. > > We became

Re: [PATCH] can: hi311x: Acquire SPI lock on ->do_get_berr_counter

2018-05-09 Thread Akshay Bhat
On 05/09/2018 08:38 AM, Lukas Wunner wrote: > hi3110_get_berr_counter() may run concurrently to the rest of the driver > but neglects to acquire the lock protecting access to the SPI device. > As a result, it and the rest of the driver may clobber each other's tx > and rx buffers. > > We became

[PATCH] can: hi311x: Acquire SPI lock on ->do_get_berr_counter

2018-05-09 Thread Lukas Wunner
hi3110_get_berr_counter() may run concurrently to the rest of the driver but neglects to acquire the lock protecting access to the SPI device. As a result, it and the rest of the driver may clobber each other's tx and rx buffers. We became aware of this issue because transmission of packets with