idualwifi7260 & iaxwifi200: Do not return but go to the appropriate fail.
This way, we will actually tear down what state got initialized.
This commit is contained in:
@@ -11029,7 +11029,7 @@ iwx_attach(struct device *parent, struct device *self, void *aux)
|
|||||||
|
|
||||||
#ifdef __HAIKU__
|
#ifdef __HAIKU__
|
||||||
if (iwx_preinit(sc) != 0)
|
if (iwx_preinit(sc) != 0)
|
||||||
return -1;
|
goto fail4;
|
||||||
#else
|
#else
|
||||||
/*
|
/*
|
||||||
* We cannot read the MAC address without loading the
|
* We cannot read the MAC address without loading the
|
||||||
|
|||||||
@@ -12125,7 +12125,7 @@ iwm_attach(struct device *parent, struct device *self, void *aux)
|
|||||||
ic->ic_ampdu_tx_stop = iwm_ampdu_tx_stop;
|
ic->ic_ampdu_tx_stop = iwm_ampdu_tx_stop;
|
||||||
#ifdef __HAIKU__
|
#ifdef __HAIKU__
|
||||||
if (iwm_preinit(sc) != 0)
|
if (iwm_preinit(sc) != 0)
|
||||||
return -1;
|
goto fail4;
|
||||||
#else
|
#else
|
||||||
/*
|
/*
|
||||||
* We cannot read the MAC address without loading the
|
* We cannot read the MAC address without loading the
|
||||||
|
|||||||
Reference in New Issue
Block a user