In axe_stop(), move axe_reset() after usbd_close_pipe().
authorSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 9 Sep 2005 13:59:27 +0000 (13:59 +0000)
committerSepherosa Ziehau <sephe@dragonflybsd.org>
Fri, 9 Sep 2005 13:59:27 +0000 (13:59 +0000)
commit9c88e8171aafb1fc373b0c3aae68020b095216ca
tree8d2549a46dee7724498524b2f9925ee52e676d63
parentaf50cbf5d782f5197a8ee13aee8f6809b7bcd9a1
In axe_stop(), move axe_reset() after usbd_close_pipe().

usbd_set_config_no() will free `ifaces', which contains header of `pipe's.
So the `pipe' removal operation in usbd_close_pipe() will be quite dangerous
if usbd_set_config_no() has been called[here via axe_reset()]

Obtained-from: FreeBSD dev/usb/if_axe.c rev1.16
Reviewed-by: joerg
sys/dev/netif/axe/if_axe.c