aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Downey <downey@zymeta.com>2006-04-03 08:58:07 -0600
committerGreg Kroah-Hartman <gregkh@suse.de>2006-04-14 11:12:26 -0700
commit01e89506351b84ac6f39eb70f99c71483768ca60 (patch)
treee74b16de9107b8281b48e4514c34dcd6c585debd
parent48b1be6ac080c3bb5ad3e529d8816953507790ab (diff)
downloadkernel_samsung_aries-01e89506351b84ac6f39eb70f99c71483768ca60.zip
kernel_samsung_aries-01e89506351b84ac6f39eb70f99c71483768ca60.tar.gz
kernel_samsung_aries-01e89506351b84ac6f39eb70f99c71483768ca60.tar.bz2
[PATCH] USB: keyspan-remote bugfix
Signed-off-by: Michael Downey <downey@zymeta.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/input/keyspan_remote.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/usb/input/keyspan_remote.c b/drivers/usb/input/keyspan_remote.c
index b4a051b..3d91197 100644
--- a/drivers/usb/input/keyspan_remote.c
+++ b/drivers/usb/input/keyspan_remote.c
@@ -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);