patch-2.4.22 linux-2.4.22/drivers/scsi/aacraid/rx.c
Next file: linux-2.4.22/drivers/scsi/aacraid/sa.c
Previous file: linux-2.4.22/drivers/scsi/aacraid/linit.c
Back to the patch index
Back to the overall index
-  Lines: 12
-  Date:
2003-08-25 04:44:42.000000000 -0700
-  Orig file: 
linux-2.4.21/drivers/scsi/aacraid/rx.c
-  Orig date: 
2002-11-28 15:53:14.000000000 -0800
diff -urN linux-2.4.21/drivers/scsi/aacraid/rx.c linux-2.4.22/drivers/scsi/aacraid/rx.c
@@ -400,6 +400,11 @@
 	 *	Start any kernel threads needed
 	 */
 	dev->thread_pid = kernel_thread((int (*)(void *))aac_command_thread, dev, 0);
+	if(dev->thread_pid < 0)
+	{
+		printk(KERN_ERR "aacraid: Unable to create rx thread.\n");
+		return -1;
+	}	
 	/*
 	 *	Tell the adapter that all is configured, and it can start
 	 *	accepting requests
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)