Skip to content

Commit

Permalink
[PATCH] v4l: 721: check kthread correctly
Browse files Browse the repository at this point in the history
- 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>
  • Loading branch information
Alexey Dobriyan authored and Linus Torvalds committed Nov 9, 2005
1 parent bd15eba commit 4d63cb4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/media/video/msp3400.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 4d63cb4

Please sign in to comment.