Am Mittwoch, 25. Juni 2003 12:40 schrieb Detlef Schmicker (Siebertz Electronic GmbH):
> Thanks,
>
> it changed the behaviour:

Shit,

somebody has broken videodev.c thoroughly.
Here's a further patch to be applied in addition to
thze first one.

        HTH
                Oliver

You can import this changeset into BK by piping this whole message to:
'| bk receive [path to repository]' or apply the patch as usual.

===================================================================


[EMAIL PROTECTED], 2003-06-25 13:36:39+02:00, [EMAIL PROTECTED]
  - disconnect checks


 videodev.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)


diff -Nru a/drivers/media/video/videodev.c b/drivers/media/video/videodev.c
--- a/drivers/media/video/videodev.c    Wed Jun 25 13:37:26 2003
+++ b/drivers/media/video/videodev.c    Wed Jun 25 13:37:26 2003
@@ -71,7 +71,7 @@
        char *buf, size_t count, loff_t *ppos)
 {
        struct video_device *vfl = video_devdata(file);
-       if(vfl->read)
+       if(vfl && vfl->read)
                return vfl->read(vfl, buf, count, file->f_flags&O_NONBLOCK);
        else
                return -EINVAL;
@@ -87,7 +87,7 @@
        size_t count, loff_t *ppos)
 {
        struct video_device *vfl = video_devdata(file);
-       if(vfl->write)
+       if(vfl && vfl->write)
                return vfl->write(vfl, buf, count, file->f_flags&O_NONBLOCK);
        else
                return 0;
@@ -106,7 +106,7 @@
 static unsigned int video_poll(struct file *file, poll_table * wait)
 {
        struct video_device *vfl = video_devdata(file);
-       if(vfl->poll)
+       if(vfl && vfl->poll)
                return vfl->poll(vfl, file, wait);
        else
                return 0;

===================================================================


This BitKeeper patch contains the following changesets:
1.1104
## Wrapped with gzip_uu ##


begin 664 bkpatch14020
M'XL(`':)^3X``[V4\6K;,!#&_XZ>XJ!05HKMDV7+L2&E6S.VL<%"MCZ`*ET:
M4]LJLI,R\,-/L:'=NBW)1IEM3L+Z=-RG^Z$3N&[)%1-;E5MR[`3>V[8K)GY>
M;PPU84.;NTT=6G?KUY;6^K5H;[EMAIL PROTECTED];Q&'"O&ZA.KT&O]P6
M$QZ*QS_=MWLJ)LNW[ZX_O5XR-IO!U5HUM_2%.IC-6&?=5E6FO53=NK)-V#G5
MM#5U*M2V[A^E?8P8^S?EF<!4]EQBDO6:&[EMAIL PROTECTED]"+W_CY.=4`F6<
M8NYGF4\E)+(Y\)!S3`!%A#**4^"B$+(0^3G&!2+\.36<<PB0O8&7]7+%-`1@
MRE;;IB'[EMAIL PROTECTED]/%TT&RX"\?QE`ANSA0L7$[R[[39$H5;4M#=HR&
MMJ'^P4:"/.]%AG':2['*;K0T9*0T^53L.;<[EMAIL PROTECTED](D?5)GLMT`&C_OL-4
MO82O?:@[EMAIL PROTECTED]<C?]!?ZLB/H$Q"(_TC?V(?/$+B'X?,T+0ZTY!_X
MG&<)</9AB)-R]6J[JN#T%/P07#A2YHS-<]PIAOA<\>#*CKR$8[[3C,-ST;VM
9JK.GJVLTN*EG*Q)&WF0I^PZ6FQ20*`4`````
`
end



-------------------------------------------------------
This SF.Net email is sponsored by: INetU
Attention Web Developers & Consultants: Become An INetU Hosting Partner.
Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission!
INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php
_______________________________________________
[EMAIL PROTECTED]
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel

Reply via email to