[PATCH] USB: keyspan-remote bugfix
authorMichael Downey <downey@zymeta.com>
Mon, 3 Apr 2006 14:58:07 +0000 (08:58 -0600)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 14 Apr 2006 18:12:26 +0000 (11:12 -0700)
Signed-off-by: Michael Downey <downey@zymeta.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/usb/input/keyspan_remote.c

index b4a051b..3d91197 100644 (file)
@@ -297,6 +297,8 @@ static void keyspan_check_data(struct usb_keyspan *remote, struct pt_regs *regs)
                        remote->data.bits_left -= 6;
                } else {
                        err("%s - Error in message, invalid toggle.\n", __FUNCTION__);
+                       remote->stage = 0;
+                       return;
                }
 
                keyspan_load_tester(remote, 5);