mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
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 <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
054afee473
commit
2582140035
1 changed files with 1 additions and 1 deletions
|
|
@ -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);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue