-/* $OpenBSD: aac.c,v 1.91 2020/10/15 00:01:24 krw Exp $ */
+/* $OpenBSD: aac.c,v 1.92 2022/01/07 09:08:15 jsg Exp $ */
/*-
* Copyright (c) 2000 Michael Smith
if (aac_alloc_commands(sc) != 0)
break;
}
- if (sc->total_fibs == 0)
- goto out;
+ if (sc->total_fibs == 0) {
+ error = ENOMEM;
+ goto bail_out;
+ }
scsi_iopool_init(&sc->aac_iopool, sc,
aac_alloc_command, aac_release_command);
if (state > 0)
bus_dmamem_free(sc->aac_dmat, &seg, 1);
- out:
return (error);
}