Fix checks for error return from urtw_alloc_rx_data_list() and

urtw_alloc_tx_data_list().
This commit is contained in:
Kevin Lo 2011-12-02 02:19:03 +00:00
parent 6081c922d2
commit aba07fdf5a

View file

@ -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;
}