Re: [PATCH v3] usb: gadget: function: fix missing spinlock in f_uac1_legacy

From: Sergei Shtylyov
Date: Tue Jul 07 2020 - 04:35:22 EST


On 05.07.2020 15:40, qiang.zhang@xxxxxxxxxxxxx wrote:

From: Zhang Qiang <qiang.zhang@xxxxxxxxxxxxx>

Add a missing spinlock protection for play_queue, because
the play_queue may be destroyed when the "playback_work"
work func and "f_audio_out_ep_complete" callback func
operate this paly_queue at the same time.

It's play_queue. :-)

Cc: stable <stable@xxxxxxxxxxxxxxx>
Signed-off-by: Zhang Qiang <qiang.zhang@xxxxxxxxxxxxx>
[...]

MBR, Sergei