mirror of
https://github.com/opnsense/src.git
synced 2026-05-28 04:12:45 -04:00
Fix checks for error return from urtw_alloc_rx_data_list() and
urtw_alloc_tx_data_list().
This commit is contained in:
parent
6081c922d2
commit
aba07fdf5a
1 changed files with 2 additions and 2 deletions
|
|
@ -1053,10 +1053,10 @@ urtw_init_locked(void *arg)
|
|||
|
||||
if (!(sc->sc_flags & URTW_INIT_ONCE)) {
|
||||
ret = urtw_alloc_rx_data_list(sc);
|
||||
if (error != 0)
|
||||
if (ret != 0)
|
||||
goto fail;
|
||||
ret = urtw_alloc_tx_data_list(sc);
|
||||
if (error != 0)
|
||||
if (ret != 0)
|
||||
goto fail;
|
||||
sc->sc_flags |= URTW_INIT_ONCE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue