Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 054afee4 authored by Akinobu Mita's avatar Akinobu Mita Committed by Mauro Carvalho Chehab
Browse files

V4L/DVB (4995): Vivi: fix kthread_run() error check



The return value of kthread_run() should be checked by IS_ERR().

Signed-off-by: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@infradead.org>
parent 72f678c3
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -535,9 +535,9 @@ static int vivi_start_thread(struct vivi_dmaqueue *dma_q)

	dma_q->kthread = kthread_run(vivi_thread, dma_q, "vivi");

	if (dma_q->kthread == NULL) {
	if (IS_ERR(dma_q->kthread)) {
		printk(KERN_ERR "vivi: kernel_thread() failed\n");
		return -EINVAL;
		return PTR_ERR(dma_q->kthread);
	}
	dprintk(1,"returning from %s\n",__FUNCTION__);
	return 0;