Ensure that error is set.

Noticed by:	rui
This commit is contained in:
adrian 2012-07-14 05:51:54 +00:00
parent a8c236d935
commit 852b8a4cb1

View File

@ -2923,6 +2923,7 @@ ath_descdma_setup_rx_edma(struct ath_softc *sc,
if (bf == NULL) {
if_printf(ifp, "malloc of %s buffers failed, size %u\n",
dd->dd_name, bsize);
error = ENOMEM;
goto fail3;
}
dd->dd_bufptr = bf;