cvs commit: src/sys/dev/usb usb_subr.c

Ian Dowse iedowse at FreeBSD.org
Sat May 29 07:51:58 PDT 2004


iedowse     2004/05/29 07:51:23 PDT

  FreeBSD src repository

  Modified files:
    sys/dev/usb          usb_subr.c 
  Log:
  Refuse to change the configuration index if the device has open
  pipes, since open pipes are linked off a usbd_interface structure
  that is free()'d when the configuration index is changed. Attempting
  to close or use such pipes later would access freed memory and
  usually crash the system.
  
  The only driver that is known to trigger this problem is if_axe,
  which is itself at fault, but it is worth detecting the situation
  to avoid the obscure crashes that result from this type of easily
  made driver mistakes.
  
  Revision  Changes    Path
  1.64      +10 -2     src/sys/dev/usb/usb_subr.c


More information about the cvs-all mailing list