|
@@ -1354,9 +1354,11 @@ static int saa7164_initdev(struct pci_dev *pci_dev,
|
|
if (fw_debug) {
|
|
if (fw_debug) {
|
|
dev->kthread = kthread_run(saa7164_thread_function, dev,
|
|
dev->kthread = kthread_run(saa7164_thread_function, dev,
|
|
"saa7164 debug");
|
|
"saa7164 debug");
|
|
- if (!dev->kthread)
|
|
|
|
|
|
+ if (IS_ERR(dev->kthread)) {
|
|
|
|
+ dev->kthread = NULL;
|
|
printk(KERN_ERR "%s() Failed to create "
|
|
printk(KERN_ERR "%s() Failed to create "
|
|
"debug kernel thread\n", __func__);
|
|
"debug kernel thread\n", __func__);
|
|
|
|
+ }
|
|
}
|
|
}
|
|
|
|
|
|
} /* != BOARD_UNKNOWN */
|
|
} /* != BOARD_UNKNOWN */
|