aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorAkinobu Mita <akinobu.mita@gmail.com>2006-12-20 08:04:00 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-12-27 11:20:12 -0500
commit054afee4736677a00982f6414a983dec8ee511db (patch)
treebe0b30ba5ffad65874091e5ca28fb685765094b3 /drivers/media
parent72f678c30185df18ac38ef14c9045d139c2263bc (diff)
V4L/DVB (4995): Vivi: fix kthread_run() error check
The return value of kthread_run() should be checked by IS_ERR(). Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/vivi.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c
index 3cead24a36c1..bacb311b4f24 100644
--- a/drivers/media/video/vivi.c
+++ b/drivers/media/video/vivi.c
@@ -535,9 +535,9 @@ static int vivi_start_thread(struct vivi_dmaqueue *dma_q)
535 535
536 dma_q->kthread = kthread_run(vivi_thread, dma_q, "vivi"); 536 dma_q->kthread = kthread_run(vivi_thread, dma_q, "vivi");
537 537
538 if (dma_q->kthread == NULL) { 538 if (IS_ERR(dma_q->kthread)) {
539 printk(KERN_ERR "vivi: kernel_thread() failed\n"); 539 printk(KERN_ERR "vivi: kernel_thread() failed\n");
540 return -EINVAL; 540 return PTR_ERR(dma_q->kthread);
541 } 541 }
542 dprintk(1,"returning from %s\n",__FUNCTION__); 542 dprintk(1,"returning from %s\n",__FUNCTION__);
543 return 0; 543 return 0;