From: Akinobu Mita Date: Wed, 20 Dec 2006 13:07:30 +0000 (-0300) Subject: V4L/DVB (4996): Msp3400: fix kthread_run error check X-Git-Tag: v2.6.20-rc3~55^2~5 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=25821400359d2b3daacfb93303944211b8411ac3;p=platform%2Fkernel%2Flinux-exynos.git V4L/DVB (4996): Msp3400: fix kthread_run error check The return value of kthread_run() should be checked by IS_ERR(). Signed-off-by: Akinobu Mita Signed-off-by: Mauro Carvalho Chehab --- diff --git a/drivers/media/video/msp3400-driver.c b/drivers/media/video/msp3400-driver.c index 295cb99..2fb9fe6 100644 --- a/drivers/media/video/msp3400-driver.c +++ b/drivers/media/video/msp3400-driver.c @@ -949,7 +949,7 @@ static int msp_attach(struct i2c_adapter *adapter, int address, int kind) if (thread_func) { state->kthread = kthread_run(thread_func, client, "msp34xx"); - if (state->kthread == NULL) + if (IS_ERR(state->kthread)) v4l_warn(client, "kernel_thread() failed\n"); msp_wake_thread(client); }