diff options
author | Michael Krufky <devnull@localhost> | 2005-10-06 23:48:36 +0000 |
---|---|---|
committer | Michael Krufky <devnull@localhost> | 2005-10-06 23:48:36 +0000 |
commit | bdb424bcbf9f6b3dd84dacf2d57df71d4f883bc1 (patch) | |
tree | ac3f3445ae4663ff2c1deb30ebbd5c45e9facd11 | |
parent | 54060236a7efe01640b889d00c8f7b65918faa7a (diff) | |
download | mediapointer-dvb-s2-bdb424bcbf9f6b3dd84dacf2d57df71d4f883bc1.tar.gz mediapointer-dvb-s2-bdb424bcbf9f6b3dd84dacf2d57df71d4f883bc1.tar.bz2 |
* msp3400.c: (msp_detach):
- check ->kthread correctly
Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: Michael Krufky <mkrufky@m1k.net>
-rw-r--r-- | linux/drivers/media/video/msp3400-driver.c | 2 | ||||
-rw-r--r-- | linux/drivers/media/video/msp3400.c | 2 | ||||
-rw-r--r-- | v4l/ChangeLog | 8 |
3 files changed, 10 insertions, 2 deletions
diff --git a/linux/drivers/media/video/msp3400-driver.c b/linux/drivers/media/video/msp3400-driver.c index 23b46cacc..e91267516 100644 --- a/linux/drivers/media/video/msp3400-driver.c +++ b/linux/drivers/media/video/msp3400-driver.c @@ -1604,7 +1604,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); } diff --git a/linux/drivers/media/video/msp3400.c b/linux/drivers/media/video/msp3400.c index 23b46cacc..e91267516 100644 --- a/linux/drivers/media/video/msp3400.c +++ b/linux/drivers/media/video/msp3400.c @@ -1604,7 +1604,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); } diff --git a/v4l/ChangeLog b/v4l/ChangeLog index b084422ff..d32dea2aa 100644 --- a/v4l/ChangeLog +++ b/v4l/ChangeLog @@ -1,3 +1,11 @@ +2005-10-06 23:46 mkrufky + + * msp3400.c: (msp_detach): + - check ->kthread correctly + + Signed-off-by: Alexey Dobriyan <adobriyan@gmail.com> + Signed-off-by: Michael Krufky <mkrufky@m1k.net> + 2005-10-07 21:35 nshmyrev * Makefile: |