kernel/bwn: Improve error handling in bwn_attach().
authorImre Vadasz <imre@vdsz.com>
Mon, 9 Jun 2014 20:36:22 +0000 (22:36 +0200)
committerImre Vadasz <imre@vdsz.com>
Mon, 9 Jun 2014 20:36:22 +0000 (22:36 +0200)
commit7622c087975268ed63832c8563b6d771fe42b42e
treea3166caaf17064c3803554bcd740674d2cf0cf25
parentb348c75de7cc21e12f278250412e7b9ac49f2712
kernel/bwn: Improve error handling in bwn_attach().

* Making sure to call wlan_serialize_exit() when bus_setup_intr() fails.

* Return the proper error values when bwn_attach() fails.
sys/dev/netif/bwn/bwn/if_bwn.c