ALSA: timer: fix a missing goto
"ALSA: timer: Handle disconnection more safely" was applied after "ALSA: timer: Fix race at concurrent reads", which left a break in place of the correct goto _error. Fix that. Thanks to Elektroschmock <elektroschmock78@googlemail.com> for pointing out the problem. Change-Id: I85252c1d40c4bd88ca86fa8c0bb228d7ed6b12ed Signed-off-by: Corinna Vinschen <xda@vinschen.de>
This commit is contained in:
parent
70350d071d
commit
a2ea4234eb
|
@ -2004,7 +2004,7 @@ static ssize_t snd_timer_user_read(struct file *file, char __user *buffer,
|
|||
|
||||
if (tu->disconnected) {
|
||||
err = -ENODEV;
|
||||
break;
|
||||
goto _error;
|
||||
}
|
||||
if (signal_pending(current)) {
|
||||
err = -ERESTARTSYS;
|
||||
|
|
Loading…
Reference in New Issue