On Mon, Nov 19, 2018 at 9:22 PM Hans Verkuil <hverkuil@xxxxxxxxx> wrote: > > From d15ccd98e557a8cef1362cb591eb3011a6d8e1fd Mon Sep 17 00:00:00 2001 > From: Hans Verkuil <hverkuil@xxxxxxxxx> > Date: Fri, 16 Nov 2018 12:14:31 +0100 > Subject: [PATCH 2/4] vivid: use per-queue mutexes instead of one global mutex. > > This avoids having to unlock the queue lock in stop_streaming. > > Signed-off-by: Hans Verkuil <hverkuil@xxxxxxxxx> > Reported-by: syzbot+736c3aae4af7b50d9683@xxxxxxxxxxxxxxxxxxxxxxxxx > --- > Changes since v2: > - add mutex_destroy() > --- > drivers/media/platform/vivid/vivid-core.c | 26 +++++++++++++++---- > drivers/media/platform/vivid/vivid-core.h | 5 ++++ > .../media/platform/vivid/vivid-kthread-cap.c | 2 -- > .../media/platform/vivid/vivid-kthread-out.c | 2 -- > drivers/media/platform/vivid/vivid-sdr-cap.c | 2 -- > 5 files changed, 26 insertions(+), 11 deletions(-) > Reviewed-by: Tomasz Figa <tfiga@xxxxxxxxxxxx> Best regards, Tomasz