On Sat, 4 Jul 2009, Ramya Desai wrote:Don't use kmalloc to allocate URBs; use usb_alloc_urb. You must not use GFP_KERNEL in a completion routine. Use GFP_ATOMIC instead. You can't return -ENOMEM because this function returns void. Why do the memcpy? usb_fill_bulk_urb will just overwrite the data. Fix those mistakes. No other special action is needed. In fact, you might not have to create a new URB at all. You might be able to re-use the URB that was passed to my_usb_stor_blocking_completion(). Alan Stern -- To unsubscribe from this list: send the line "unsubscribe linux-usb" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html
| Rafael J. Wysocki | [Bug #10493] mips BCM47XX compile error |
| Ingo Molnar | [patch 02/13] syslets: add syslet.h include file, user API/ABI definitions |
| Greg KH | [GIT PATCH] driver core patches against 2.6.24 |
| Andrea Arcangeli | [PATCH 00 of 11] mmu notifier #v16 |
git: | |
| David Miller | Re: [PATCH] pkt_sched: Destroy gen estimators under rtnl_lock(). |
| Gerrit Renker | [PATCH 27/37] dccp: Integration of dynamic feature activation - part 2 (server side) |
| Linus Torvalds | Re: [GIT]: Networking |
| Mark Lord | Re: [BUG] New Kernel Bugs |
