提交 4d63cb45 编写于 作者: A Alexey Dobriyan 提交者: Linus Torvalds

[PATCH] v4l: 721: check kthread correctly

- Check ->kthread correctly
Signed-off-by: NAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: NMichael Krufky <mkrufky@m1k.net>
Signed-off-by: NMauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: NAndrew Morton <akpm@osdl.org>
Signed-off-by: NLinus Torvalds <torvalds@osdl.org>
上级 bd15eba3
......@@ -1566,7 +1566,7 @@ static int msp_detach(struct i2c_client *client)
struct msp3400c *msp = i2c_get_clientdata(client);
/* shutdown control thread */
if (msp->kthread >= 0) {
if (msp->kthread) {
msp->restart = 1;
kthread_stop(msp->kthread);
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册