Creating URB in completion callback

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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@xxxxxxxxxxxxxxx
More majordomo info at  http://vger.kernel.org/majordomo-info.html

[Index of Archives]     [Linux Media]     [Linux Input]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Old Linux USB Devel Archive]

  Powered by Linux