18 Jan
2023
18 Jan
'23
5:50 p.m.
On Tue, 17 Jan 2023 15:17:29 +0100, Dan Carpenter wrote:
The ff400_copy_msg_to_user() function drops the spin lock to call copy_to_user(). However, if the copy_to_user() fails, then it must take the lock again before returning. Failure to take the lock leads to a double unlock in the caller, hwdep_read().
Fixes: acdebd8b4c0c ("ALSA: fireface: implement message parser for Fireface 400") Signed-off-by: Dan Carpenter error27@gmail.com
Thanks, applied.
Takashi