X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=sound%2Fcore%2Fcontrol.c;h=7cc19394dae895155e47a715dd8abaef533d3f3f;hb=f9296eb00ed30209424102d3c920e69617eea853;hp=c39afa644aca0f6110012c75cb59a288d14e28ff;hpb=a91482bdcc2e0f6035702e46f1b99043a0893346;p=linux-2.6.git diff --git a/sound/core/control.c b/sound/core/control.c index c39afa644..7cc19394d 100644 --- a/sound/core/control.c +++ b/sound/core/control.c @@ -1137,16 +1137,15 @@ static ssize_t snd_ctl_read(struct file *file, char __user *buffer, size_t count kfree(kev); if (copy_to_user(buffer, &ev, sizeof(snd_ctl_event_t))) { err = -EFAULT; - goto out; + goto __end; } spin_lock_irq(&ctl->read_lock); buffer += sizeof(snd_ctl_event_t); count -= sizeof(snd_ctl_event_t); result += sizeof(snd_ctl_event_t); } -__end: + __end: spin_unlock_irq(&ctl->read_lock); -out: return result > 0 ? result : err; }