dect
/
linux-2.6
Archived
13
0
Fork 0

[PATCH] v4l: 721: check kthread correctly

- Check ->kthread correctly

Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
Signed-off-by: Mauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
This commit is contained in:
Alexey Dobriyan 2005-11-08 21:37:12 -08:00 committed by Linus Torvalds
parent bd15eba3a0
commit 4d63cb45a2
1 changed files with 1 additions and 1 deletions

View File

@ -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);
}