patch-2.4.4 linux/drivers/char/rio/rio_linux.c
Next file: linux/drivers/char/rio/rioctrl.c
Previous file: linux/drivers/char/raw.c
Back to the patch index
Back to the overall index
-  Lines: 13
-  Date:
Fri Apr 13 20:26:07 2001
-  Orig file: 
v2.4.3/linux/drivers/char/rio/rio_linux.c
-  Orig date: 
Fri Feb  9 11:30:23 2001
diff -u --recursive --new-file v2.4.3/linux/drivers/char/rio/rio_linux.c linux/drivers/char/rio/rio_linux.c
@@ -1031,8 +1031,10 @@
  free2:kfree (p->RIOHosts);
  free1:kfree (p);
  free0:
-  rio_dprintk (RIO_DEBUG_INIT, "Not enough memory! %p %p %p %p %p\n", 
-               p, p->RIOHosts, p->RIOPortp, rio_termios, rio_termios);
+  if (p) {
+	rio_dprintk (RIO_DEBUG_INIT, "Not enough memory! %p %p %p %p %p\n", 
+        	       p, p->RIOHosts, p->RIOPortp, rio_termios, rio_termios);
+  }
   return -ENOMEM;
 }
 
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)