diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-05-03 02:10:14 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2015-05-03 02:10:14 +0000 |
commit | a3ccd39f33f883bd36f61c40bae2532aa1a2b719 (patch) | |
tree | 61385566872205d26fb362206cb3897d6edf7e6e /sys/dev/ic | |
parent | 1aac483cfd757e6c8eaa7da52dac9270a4ed044b (diff) |
add missing CISS_UNLOCK_SCRATCH/splx calls
ok krw@
Diffstat (limited to 'sys/dev/ic')
-rw-r--r-- | sys/dev/ic/ciss.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/sys/dev/ic/ciss.c b/sys/dev/ic/ciss.c index ac44ea60c2a..fc3bf1f896b 100644 --- a/sys/dev/ic/ciss.c +++ b/sys/dev/ic/ciss.c @@ -1,4 +1,4 @@ -/* $OpenBSD: ciss.c,v 1.72 2015/03/14 03:38:47 jsg Exp $ */ +/* $OpenBSD: ciss.c,v 1.73 2015/05/03 02:10:13 jsg Exp $ */ /* * Copyright (c) 2005,2006 Michael Shalayeff @@ -756,8 +756,10 @@ ciss_ldmap(struct ciss_softc *sc) total = sizeof(*lmap) + (sc->maxunits - 1) * sizeof(lmap->map); ccb = scsi_io_get(&sc->sc_iopool, SCSI_POLL|SCSI_NOSLEEP); - if (ccb == NULL) + if (ccb == NULL) { + CISS_UNLOCK_SCRATCH(sc, lock); return ENOMEM; + } ccb->ccb_len = total; ccb->ccb_data = lmap; @@ -800,8 +802,10 @@ ciss_sync(struct ciss_softc *sc) flush->flush = sc->sc_flush; ccb = scsi_io_get(&sc->sc_iopool, SCSI_POLL|SCSI_NOSLEEP); - if (ccb == NULL) + if (ccb == NULL) { + CISS_UNLOCK_SCRATCH(sc, lock); return ENOMEM; + } ccb->ccb_len = sizeof(*flush); ccb->ccb_data = flush; |