patch-2_6_7-vs1_9_1_12
[linux-2.6.git] / drivers / scsi / aacraid / sa.c
index c89f6d5..494d1fd 100644 (file)
@@ -419,6 +419,11 @@ int aac_sa_init(struct aac_dev *dev, unsigned long devnum)
         *      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 command thread.\n");
+               return -1;
+       }
+
        /*
         *      Tell the adapter that all is configure, and it can start 
         *      accepting requests