summaryrefslogtreecommitdiff
path: root/linux
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@infradead.org>2006-12-20 11:07:30 -0200
committerMauro Carvalho Chehab <mchehab@infradead.org>2006-12-20 11:07:30 -0200
commitdf9d83a0677741bef779a81362cde98850e767dc (patch)
tree1c88c9216a11445081237ee88bc5cb8a3bb25d0f /linux
parent745a73747ae253f939f272fba08ed2739448cded (diff)
downloadmediapointer-dvb-s2-df9d83a0677741bef779a81362cde98850e767dc.tar.gz
mediapointer-dvb-s2-df9d83a0677741bef779a81362cde98850e767dc.tar.bz2
Msp3400: fix kthread_run error check
From: Akinobu Mita <akinobu.mita@gmail.com> 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 'linux')
-rw-r--r--linux/drivers/media/video/msp3400-driver.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/drivers/media/video/msp3400-driver.c b/linux/drivers/media/video/msp3400-driver.c
index 8ff25e4a8..f03cc0032 100644
--- a/linux/drivers/media/video/msp3400-driver.c
+++ b/linux/drivers/media/video/msp3400-driver.c
@@ -1027,7 +1027,7 @@ static int msp_attach(struct i2c_adapter *adapter, int address, int kind)
#if LINUX_VERSION_CODE >= KERNEL_VERSION(2,5,0)
state->kthread = kthread_run(thread_func, client, "msp34xx");
- if (state->kthread == NULL)
+ if (IS_ERR(state->kthread))
v4l_warn(client, "kernel_thread() failed\n");
#else
DECLARE_MUTEX_LOCKED(sem);