From: Michael Downey Date: Mon, 3 Apr 2006 14:58:07 +0000 (-0600) Subject: [PATCH] USB: keyspan-remote bugfix X-Git-Tag: MMI-PSA29.97-13-9~50127 X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=01e89506351b84ac6f39eb70f99c71483768ca60;p=GitHub%2FMotorolaMobilityLLC%2Fkernel-slsi.git [PATCH] USB: keyspan-remote bugfix Signed-off-by: Michael Downey Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/input/keyspan_remote.c b/drivers/usb/input/keyspan_remote.c index b4a051b549d1..3d911976f378 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);