[PATCH] n_r3964: restore_flags on failure

From: Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Date: Tue Jan 09 2001 - 11:33:29 EST


Hi,

        Please consider applying.

- Arnaldo

--- linux-2.4.0-ac4/drivers/char/n_r3964.c Tue Dec 19 11:25:34 2000
+++ linux-2.4.0-ac4.acme/drivers/char/n_r3964.c Tue Jan 9 14:23:07 2001
@@ -988,8 +988,10 @@
 
       pMsg = kmalloc(sizeof(struct r3964_message), GFP_KERNEL);
       TRACE_M("add_msg - kmalloc %x",(int)pMsg);
- if(pMsg==NULL)
+ if(pMsg==NULL) {
+ restore_flags(flags);
          return;
+ }
 
       pMsg->msg_id = msg_id;
       pMsg->arg = arg;
-
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:22 EST