patch-2.4.4 linux/drivers/char/n_r3964.c
Next file: linux/drivers/char/n_tty.c
Previous file: linux/drivers/char/misc.c
Back to the patch index
Back to the overall index
- Lines: 37
- Date:
Fri Apr 13 20:26:07 2001
- Orig file:
v2.4.3/linux/drivers/char/n_r3964.c
- Orig date:
Fri Feb 9 11:30:22 2001
diff -u --recursive --new-file v2.4.3/linux/drivers/char/n_r3964.c linux/drivers/char/n_r3964.c
@@ -7,7 +7,7 @@
* http://www.pap-philips.de
* -----------------------------------------------------------
* This software may be used and distributed according to the terms of
- * the GNU Public License, incorporated herein by reference.
+ * the GNU General Public License, incorporated herein by reference.
*
* Author:
* L. Haag
@@ -65,7 +65,7 @@
//#define DEBUG_QUEUE
-/* Log successfull handshake and protocol operations */
+/* Log successful handshake and protocol operations */
//#define DEBUG_PROTO_S
/* Log handshake and protocol errors: */
@@ -983,13 +983,14 @@
{
queue_the_message:
- save_flags(flags);
- cli();
-
pMsg = kmalloc(sizeof(struct r3964_message), GFP_KERNEL);
TRACE_M("add_msg - kmalloc %x",(int)pMsg);
- if(pMsg==NULL)
+ if(pMsg==NULL) {
return;
+ }
+
+ save_flags(flags);
+ cli();
pMsg->msg_id = msg_id;
pMsg->arg = arg;
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)