Commit 4d63cb45 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds

[PATCH] v4l: 721: check kthread correctly

- Check ->kthread correctly
Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarMichael Krufky <mkrufky@m1k.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent bd15eba3
...@@ -1566,7 +1566,7 @@ static int msp_detach(struct i2c_client *client) ...@@ -1566,7 +1566,7 @@ static int msp_detach(struct i2c_client *client)
struct msp3400c *msp = i2c_get_clientdata(client); struct msp3400c *msp = i2c_get_clientdata(client);
/* shutdown control thread */ /* shutdown control thread */
if (msp->kthread >= 0) { if (msp->kthread) {
msp->restart = 1; msp->restart = 1;
kthread_stop(msp->kthread); kthread_stop(msp->kthread);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment