VServer 1.9.2 (patch-2.6.8.1-vs1.9.2.diff)
[linux-2.6.git] / sound / core / control.c
index 7cc1939..c39afa6 100644 (file)
@@ -1137,15 +1137,16 @@ 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 __end;
+                       goto out;
                }
                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;
 }