]> git.pld-linux.org Git - packages/kernel.git/blame - linux-2.4.20-rc3-cpia_usb-USB.patch
- added description of djurban's branch
[packages/kernel.git] / linux-2.4.20-rc3-cpia_usb-USB.patch
CommitLineData
c5d96f5a 1--- linux-2.4.19.old/drivers/media/video/cpia_usb.c Thu Oct 25 22:53:47 2001
2+++ linux-2.4.19/drivers/media/video/cpia_usb.c Mon Nov 25 12:26:32 2002
3@@ -46,7 +46,7 @@
4
5 struct cpia_sbuf {
6 char *data;
7- urb_t *urb;
8+ struct urb *urb;
9 };
10
11 #define FRAMEBUF_LEN (CPIA_MAX_FRAME_SIZE+100)
12@@ -168,7 +168,7 @@
13 static int cpia_usb_open(void *privdata)
14 {
15 struct usb_cpia *ucpia = (struct usb_cpia *) privdata;
16- urb_t *urb;
17+ struct urb *urb;
18 int ret, retval = 0, fx, err;
19
20 if (!ucpia)
21@@ -266,14 +266,16 @@
22
23 error_urb1: /* free urb 1 */
24 usb_free_urb(ucpia->sbuf[1].urb);
25-
26+ ucpia->sbuf[1].urb = NULL;
27 error_urb0: /* free urb 0 */
28 usb_free_urb(ucpia->sbuf[0].urb);
29-
30+ ucpia->sbuf[0].urb = NULL;
31 error_1:
32 kfree (ucpia->sbuf[1].data);
33+ ucpia->sbuf[1].data = NULL;
34 error_0:
35 kfree (ucpia->sbuf[0].data);
36+ ucpia->sbuf[0].data = NULL;
37
38 return retval;
39 }
40@@ -620,8 +622,10 @@
41 ucpia->buffers[0] = NULL;
42 }
43
44- if (!ucpia->open)
45+ if (!ucpia->open) {
46 kfree(ucpia);
47+ cam->lowlevel_data = NULL;
48+ }
49 }
50
51 static int __init usb_cpia_init(void)
This page took 1.832611 seconds and 4 git commands to generate.