|
|
|
Re: [PATCH] usb-serial: Let usb_serial_port manage port private data to avoid referencing NULL pointer oops | |
| [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] |
|
On Fri, 10 Aug 2012, Huajun Li wrote: > With commit 0998d0631001288a5974afc0b2a5f568bcdecb4d, driver_data is > cleared after driver is unbound. > So from now on, it's not suitable to maintain serial port private data > by driver core, because some usb serial drivers, > such as usb_wwan, need retrieve port private data(in disconnect() and > release() callbacks ) even after the driver is unbound. > This will cause NULL pointer reference oops. > > Let usb_serial_port maintain port private data to fix the issue. Wouldn't it be better to fix the serial drivers instead? Some changes in this direction have already been proposed for usb_wwan. Alan Stern -- 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

[Linux Media] [Video for Linux] [Linux Input] [Linux Audio Users] [Photo] [Yosemite News] [Yosemite Photos] [Free Online Dating] [Linux Kernel] [Linux SCSI] [Old Linux USB Devel Archive] [More Archives]
![]() |
![]() |