This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

kernel crashes when USB disconnected() is called in between usb_snd_msg() in Bulk Write

Hi Experts,

I created a sample USB driver with character device access from user space.

I write a user space program to access the kernel driver write() function where I call usb_bulk_msg() to write in BULK OUT endpoint.

When I removed the USB in-between write transfer it crashes where the disconnect() is being invoked.