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

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

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

332 Views
lyfsci
Contributor III

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.

Regards,

Lyf

Labels (1)
0 Kudos
1 Reply

266 Views
weidong_sun
NXP TechSupport
NXP TechSupport

Hi Lyf,

    Sorry to say it is not within the scope of our support on how to write a USB driver !

    Suggest you had better refer to some books on linux driver.

Regards,

Weidong

0 Kudos