[PATCH] dn_keyb.c: restore_flags on failure

From: Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Date: Tue Jan 09 2001 - 08:38:37 EST


Alan,

        Please consider applying. I don't who is the maintainer, no
references in the driver, CREDITS or MAINTAINERS

- Arnaldo

--- linux-2.4.0-ac4/drivers/char/dn_keyb.c Fri Jul 28 06:34:40 2000
+++ linux-2.4.0-ac4.acme/drivers/char/dn_keyb.c Tue Jan 9 10:32:17 2001
@@ -435,15 +435,14 @@
         for(;length;length--) {
                 keyb_cmds[keyb_cmd_write++]=*(cmd++);
                 if(keyb_cmd_write==keyb_cmd_read)
- return;
+ goto out;
                 if(keyb_cmd_write==APOLLO_KEYB_CMD_ENTRIES)
                         keyb_cmd_write=0;
         }
         if(!keyb_cmd_transmit) {
             sio01.BRGtest_cra=5;
         }
- restore_flags(flags);
-
+out: restore_flags(flags);
 }
 
 static struct busmouse apollo_mouse = {
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Mon Jan 15 2001 - 21:00:21 EST