diff --git a/src/add-ons/kernel/drivers/network/wlan/iaxwifi200/dev/pci/if_iwx.c b/src/add-ons/kernel/drivers/network/wlan/iaxwifi200/dev/pci/if_iwx.c index b8b2d337b7..4f93451fe3 100644 --- a/src/add-ons/kernel/drivers/network/wlan/iaxwifi200/dev/pci/if_iwx.c +++ b/src/add-ons/kernel/drivers/network/wlan/iaxwifi200/dev/pci/if_iwx.c @@ -11029,7 +11029,7 @@ iwx_attach(struct device *parent, struct device *self, void *aux) #ifdef __HAIKU__ if (iwx_preinit(sc) != 0) - return -1; + goto fail4; #else /* * We cannot read the MAC address without loading the diff --git a/src/add-ons/kernel/drivers/network/wlan/idualwifi7260/dev/pci/if_iwm.c b/src/add-ons/kernel/drivers/network/wlan/idualwifi7260/dev/pci/if_iwm.c index c921580f1c..64a3769aac 100644 --- a/src/add-ons/kernel/drivers/network/wlan/idualwifi7260/dev/pci/if_iwm.c +++ b/src/add-ons/kernel/drivers/network/wlan/idualwifi7260/dev/pci/if_iwm.c @@ -12125,7 +12125,7 @@ iwm_attach(struct device *parent, struct device *self, void *aux) ic->ic_ampdu_tx_stop = iwm_ampdu_tx_stop; #ifdef __HAIKU__ if (iwm_preinit(sc) != 0) - return -1; + goto fail4; #else /* * We cannot read the MAC address without loading the