2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-28 07:04:00 +08:00
linux-next/drivers/staging/most
Christian Gromm bf9503f11d staging: most: hdm-usb: fix race between enqueue and most_stop_enqueue
The "broken in pipe" handler of the USB-HDM calls most_stop_enqueue() to
stop the MBO traffic before returning all MBOs back to the Mostcore.  As
the enqueue() call from the Mostcore may run in parallel with the
most_stop_enqueue(), the HDM may run into the inconsistent state and
crash the kernel.

This patch synchronizes enqueue(), most_stop_enqueue() and
most_resume_enqueue() with a mutex, hence avoiding the race condition.

Signed-off-by: Andrey Shvetsov <andrey.shvetsov@k2l.de>
Signed-off-by: Christian Gromm <christian.gromm@microchip.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2016-08-21 16:53:57 +02:00
..
aim-cdev staging: most: aim-cdev: report error returned by alloc_chrdev_region 2016-08-21 16:50:38 +02:00
aim-network staging: most: aim-network: fix interrupt unsafe spinlocks 2016-08-18 17:24:00 +02:00
aim-sound staging: most: remove multiple blank lines 2015-10-24 19:08:16 -07:00
aim-v4l2 staging: most: v4l2-aim: remove unnecessary spaces 2016-08-15 19:17:04 +02:00
Documentation Staging: most: Fix typo in staging/most 2015-10-12 20:35:21 -07:00
hdm-dim2 staging: most: dim2-hdm: introduce function dim2_transfer_madr 2016-08-18 17:24:00 +02:00
hdm-i2c staging: most: use preferred kernel types 2015-10-24 19:08:20 -07:00
hdm-usb staging: most: hdm-usb: fix race between enqueue and most_stop_enqueue 2016-08-21 16:53:57 +02:00
mostcore staging: most: hdm-usb: fix race between enqueue and most_stop_enqueue 2016-08-21 16:53:57 +02:00
Kconfig Staging: most: MOST and MOSTCORE should depend on HAS_DMA 2015-09-13 09:24:44 -07:00
Makefile Staging: most: add MOST driver's hdm-usb module 2015-07-24 13:50:43 -07:00
TODO