Commit:     2fa3195d72f7d0cfb4dcb2b0dfa265ed0fa5cfa3
Parent:     e5071b5493b1dcfa98a6e8a75f56997f6d4a0c25
Author:     Matthias Kaehlcke <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 31 01:37:24 2007 -0700
Committer:  David S. Miller <[EMAIL PROTECTED]>
CommitDate: Tue Jul 31 01:37:24 2007 -0700

    [SPARC] Videopix Frame Grabber: Fix unreleased lock in vfc_debug()
    Videopix Frame Grabber: vfc_debug() doesn't release the device lock
    when copy_from_user() fails
    Signed-off-by: Matthias Kaehlcke <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: David S. Miller <[EMAIL PROTECTED]>
 drivers/sbus/char/vfc_dev.c |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)

diff --git a/drivers/sbus/char/vfc_dev.c b/drivers/sbus/char/vfc_dev.c
index 26b1d2a..9269f7f 100644
--- a/drivers/sbus/char/vfc_dev.c
+++ b/drivers/sbus/char/vfc_dev.c
@@ -248,6 +248,7 @@ static int vfc_debug(struct vfc_dev *dev, int cmd, void 
__user *argp)
                if (copy_to_user(argp,&inout,sizeof(inout))) {
+                       vfc_unlock_device(dev);
                        return -EFAULT;
To unsubscribe from this list: send the line "unsubscribe git-commits-head" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at

Reply via email to