On Mon, Jul 18, 2016 at 05:25:28PM +0200, Christian Gromm wrote: > 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@xxxxxx> > Signed-off-by: Christian Gromm <christian.gromm@xxxxxxxxxxxxx> > --- > drivers/staging/most/hdm-usb/hdm_usb.c | 3 +- > drivers/staging/most/mostcore/core.c | 53 ++++++++++++++++++++++++---------- > 2 files changed, 38 insertions(+), 18 deletions(-) Doesn't apply to my tree anymore. Can you fix this up and resend it and the rest in this series so I can apply them? thanks, greg k-h _______________________________________________ devel mailing list devel@xxxxxxxxxxxxxxxxxxxxxx http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel