[PATCH] n_r3964: restore_flags on failure

Arnaldo Carvalho de Melo (acme@conectiva.com.br)
Tue, 9 Jan 2001 14:33:29 -0200


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/