Commit:     8e48591700f7df5969e17b0a41b7dde011c6810c
Parent:     0af1a4504699524c876361845bc2e301ecc45d0f
Author:     Matthias Kaehlcke <[EMAIL PROTECTED]>
AuthorDate: Tue Jul 31 00:39:23 2007 -0700
Committer:  Linus Torvalds <[EMAIL PROTECTED]>
CommitDate: Tue Jul 31 15:39:43 2007 -0700

    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]>
    Acked-by: "David S. Miller" <[EMAIL PROTECTED]>
    Signed-off-by: Andrew Morton <[EMAIL PROTECTED]>
    Signed-off-by: Linus Torvalds <[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