[prev in list] [next in list] [prev in thread] [next in thread]
List: linux-usb-devel
Subject: [linux-usb-devel] [patch 2.6.22-rc2-mm1] r8a66597-hcd: fix NULL
From: Yoshihiro Shimoda <shimoda.yoshihiro () renesas ! com>
Date: 2007-05-30 11:42:41
Message-ID: 465D6331.9070302 () renesas ! com
[Download RAW message or body]
This patch fixes the problem that accesses NULL pointer
when disconnected a cable while play music with usb-speaker.
Signed-off-by: Yoshihiro Shimoda <shimoda.yoshihiro@renesas.com>
---
drivers/usb/host/r8a66597-hcd.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
--- a/drivers/usb/host/r8a66597-hcd.c.orig 2007-05-30 18:06:48.000000000 +0900
+++ a/drivers/usb/host/r8a66597-hcd.c 2007-05-30 17:55:37.000000000 +0900
@@ -47,7 +47,7 @@ MODULE_DESCRIPTION("R8A66597 USB Host Co
MODULE_LICENSE("GPL");
MODULE_AUTHOR("Yoshihiro Shimoda");
-#define DRIVER_VERSION "9 May 2007"
+#define DRIVER_VERSION "29 May 2007"
static const char hcd_name[] = "r8a66597_hcd";
@@ -544,6 +544,9 @@ static void pipe_toggle_restore(struct r
unsigned char endpoint = usb_pipeendpoint(urb->pipe);
unsigned short *toggle = get_toggle_pointer(dev, urb->pipe);
+ if (!toggle)
+ return;
+
r8a66597_pipe_toggle(r8a66597, pipe, *toggle & (1 << endpoint));
}
-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
linux-usb-devel@lists.sourceforge.net
To unsubscribe, use the last form field at:
https://lists.sourceforge.net/lists/listinfo/linux-usb-devel
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic