Dear Experts,
I am trying to create a new URB in the completion call back.
Here I am giving the code that I am using.
void my_usb_stor_blocking_completion(struct urb *urb)
{
struct urb *rr_urb ;
//
//
//
rr_urb = (struct urb*)kmalloc(sizeof(struct urb), GFP_KERNEL);
if( NULL == rr_urb)
return -ENOMEM;
memcpy(rr_urb, urb, sizeof(struct urb));
usb_fill_bulk_urb(rr_urb,
current_urb_context->pusb_dev, current_urb_context->stat_bulkin_pipe,
prd_ready, 4,
my_usb_stor_blocking_completion,(void*)current_urb_context);
//
//
//
}
With this code, the system is going to hanging.
Is there any thing I need to do while creating a URB ?
Thanks and Regards,
RD
--
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| Vladislav Bolkhovitin | Re: Integration of SCST in the mainstream Linux kernel |
| Eric Paris | [RFC 0/5] [TALPA] Intro to a linux interface for on access scanning |
| holzheu | Re: [RFC/PATCH] Documentation of kernel messages |
| debian developer | Re: Dual-Licensing Linux Kernel with GPL V2 and GPL V3 |
git: | |
| Jarek Poplawski | 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) |
| David Miller | [GIT]: Networking |
| Alan Cox | Re: [BUG] New Kernel Bugs |
