Commit 4d63cb45 authored by Alexey Dobriyan's avatar Alexey Dobriyan Committed by Linus Torvalds
Browse files

[PATCH] v4l: 721: check kthread correctly



- Check ->kthread correctly

Signed-off-by: default avatarAlexey Dobriyan <adobriyan@gmail.com>
Signed-off-by: default avatarMichael Krufky <mkrufky@m1k.net>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@brturbo.com.br>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent bd15eba3
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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);
	}