2000-11-18 19:00:53

by David Woodhouse

[permalink] [raw]
Subject: [PATCH] more up_and_exit() fixes.


Index: drivers/media/video/msp3400.c
===================================================================
RCS file: /net/passion/inst/cvs/linux/drivers/media/video/Attic/msp3400.c,v
retrieving revision 1.1.2.2
diff -u -r1.1.2.2 msp3400.c
--- drivers/media/video/msp3400.c 2000/11/15 12:15:02 1.1.2.2
+++ drivers/media/video/msp3400.c 2000/11/18 18:27:17
@@ -912,7 +912,7 @@
msp->thread = NULL;

if(msp->notify != NULL)
- up(msp->notify);
+ up_and_exit(msp->notify, 0);
return 0;
}

Index: drivers/media/video/tvaudio.c
===================================================================
RCS file: /net/passion/inst/cvs/linux/drivers/media/video/Attic/tvaudio.c,v
retrieving revision 1.1.2.1
diff -u -r1.1.2.1 tvaudio.c
--- drivers/media/video/tvaudio.c 2000/11/15 12:15:02 1.1.2.1
+++ drivers/media/video/tvaudio.c 2000/11/18 18:27:19
@@ -291,7 +291,7 @@
chip->thread = NULL;
dprintk("%s: thread exiting\n", chip->c.name);
if(chip->notify != NULL)
- up(chip->notify);
+ up_and_exit(chip->notify, 0);

return 0;
}

--
dwmw2