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

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)