aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAlexey Dobriyan <adobriyan@gmail.com>2005-11-09 00:37:12 -0500
committerLinus Torvalds <torvalds@g5.osdl.org>2005-11-09 10:56:15 -0500
commit4d63cb45a2ee5cbf2e6d568fb2c4007a52e21bcf (patch)
tree575098ca6fd019946219bc761646e0c0e2cc55e3
parentbd15eba3a0f2b175bd80c21d5fc86c02ed4c56f6 (diff)
[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>
-rw-r--r--drivers/media/video/msp3400.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/msp3400.c b/drivers/media/video/msp3400.c
index 6e2b0775a74e..88cc793c0bc9 100644
--- a/drivers/media/video/msp3400.c
+++ b/drivers/media/video/msp3400.c
@@ -1566,7 +1566,7 @@ static int msp_detach(struct i2c_client *client)
1566 struct msp3400c *msp = i2c_get_clientdata(client); 1566 struct msp3400c *msp = i2c_get_clientdata(client);
1567 1567
1568 /* shutdown control thread */ 1568 /* shutdown control thread */
1569 if (msp->kthread >= 0) { 1569 if (msp->kthread) {
1570 msp->restart = 1; 1570 msp->restart = 1;
1571 kthread_stop(msp->kthread); 1571 kthread_stop(msp->kthread);
1572 } 1572 }