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:
Corinna Vinschen 2018-04-26 22:41:39 +02:00 committed by syphyr
parent 70350d071d
commit a2ea4234eb
1 changed files with 1 additions and 1 deletions

View File

@ -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;