-/* $OpenBSD: ufshci.c,v 1.21 2024/05/12 12:20:36 mglocker Exp $ */
+/* $OpenBSD: ufshci.c,v 1.22 2024/05/15 18:01:10 mglocker Exp $ */
/*
* Copyright (c) 2022 Marcus Glocker <mglocker@openbsd.org>
goto free_maps;
ccb->ccb_cookie = NULL;
+ ccb->ccb_status = CCB_STATUS_FREE;
ccb->ccb_slot = i;
SIMPLEQ_INSERT_TAIL(&sc->sc_ccb_list, ccb, ccb_entry);
error2:
bus_dmamap_unload(sc->sc_dmat, dmap);
ccb->ccb_cookie = NULL;
+ ccb->ccb_status = CCB_STATUS_FREE;
ccb->ccb_done = NULL;
error1:
xs->error = XS_DRIVER_STUFFUP;
error2:
bus_dmamap_unload(sc->sc_dmat, dmap);
ccb->ccb_cookie = NULL;
+ ccb->ccb_status = CCB_STATUS_FREE;
ccb->ccb_done = NULL;
error1:
xs->error = XS_DRIVER_STUFFUP;
error2:
bus_dmamap_unload(sc->sc_dmat, dmap);
ccb->ccb_cookie = NULL;
+ ccb->ccb_status = CCB_STATUS_FREE;
ccb->ccb_done = NULL;
error1:
xs->error = XS_DRIVER_STUFFUP;
error:
ccb->ccb_cookie = NULL;
+ ccb->ccb_status = CCB_STATUS_FREE;
ccb->ccb_done = NULL;
xs->error = XS_DRIVER_STUFFUP;
error2:
bus_dmamap_unload(sc->sc_dmat, dmap);
ccb->ccb_cookie = NULL;
+ ccb->ccb_status = CCB_STATUS_FREE;
ccb->ccb_done = NULL;
error1:
xs->error = XS_DRIVER_STUFFUP;