diff options
author | Koen Kooi <koen@openembedded.org> | 2007-06-22 07:49:23 +0000 |
---|---|---|
committer | Koen Kooi <koen@openembedded.org> | 2007-06-22 07:49:23 +0000 |
commit | a9a32cf9034963872a0ae44036f0ecfb2a7069c0 (patch) | |
tree | 34871b81e02fcf79ab0618fa30a1c870cfbaa0c5 /packages/linux/linux-ezx-2.6.21/patches/mux-fix-init-errorpath.patch | |
parent | 19d91f3c676370ab78e31ba67d3d9db715ddfc63 (diff) | |
parent | 005b94b2d0208080b63ccd708fd354cf5717b84c (diff) |
merge of 'a2a414dc8c26784dc8f35ecddb62ca87e5d0f634'
and 'e41ad38990f6485eb33ce1902f7cd10880deba5b'
Diffstat (limited to 'packages/linux/linux-ezx-2.6.21/patches/mux-fix-init-errorpath.patch')
-rwxr-xr-x | packages/linux/linux-ezx-2.6.21/patches/mux-fix-init-errorpath.patch | 20 |
1 files changed, 20 insertions, 0 deletions
diff --git a/packages/linux/linux-ezx-2.6.21/patches/mux-fix-init-errorpath.patch b/packages/linux/linux-ezx-2.6.21/patches/mux-fix-init-errorpath.patch new file mode 100755 index 0000000000..716ef86fd1 --- /dev/null +++ b/packages/linux/linux-ezx-2.6.21/patches/mux-fix-init-errorpath.patch @@ -0,0 +1,20 @@ +Index: linux-2.6.16/drivers/char/ts0710_mux_usb.c +=================================================================== +--- linux-2.6.16.orig/drivers/char/ts0710_mux_usb.c 2007-01-17 00:10:32.000000000 +0100 ++++ linux-2.6.16/drivers/char/ts0710_mux_usb.c 2007-01-17 00:42:23.000000000 +0100 +@@ -811,7 +811,6 @@ + /*init the related mux interface*/ + if (!(bvd_ipc = kzalloc(sizeof(struct ipc_usb_data), GFP_KERNEL))) { + err("usb_ipc_init: Out of memory."); +- usb_deregister(&usb_ipc_driver); + return -ENOMEM; + } + bvd_dbg("usb_ipc_init: Address of bvd_ipc:%p", bvd_ipc); +@@ -819,7 +818,6 @@ + if (!(bvd_ipc->xmit.buf = kmalloc(IPC_USB_XMIT_SIZE, GFP_KERNEL))) { + err("usb_ipc_init: Not enough memory for the input buffer."); + kfree(bvd_ipc); +- usb_deregister(&usb_ipc_driver); + return -ENOMEM; + } + bvd_dbg("usb_ipc_init: bvd_ipc->xmit.buf address:%p", |