Date: Fri, 16 Jun 2017 09:21:21 +0200 From: Sebastian Huber <sebastian.huber@embedded-brains.de> To: freebsd-hackers@freebsd.org Subject: [PATCH 1/2] cfi: Add intr_restore() to cfi_write_block() Message-ID: <20170616072122.17504-1-sebastian.huber@embedded-brains.de>
next in thread | raw e-mail | index | archive | help
Restore the interrupt status in case of a timeout. --- sys/dev/cfi/cfi_core.c | 1 + 1 file changed, 1 insertion(+) diff --git a/sys/dev/cfi/cfi_core.c b/sys/dev/cfi/cfi_core.c index 1bf687e3cee..e90db06dcef 100644 --- a/sys/dev/cfi/cfi_core.c +++ b/sys/dev/cfi/cfi_core.c @@ -647,6 +647,7 @@ cfi_write_block(struct cfi_softc *sc) cfi_write(sc, sc->sc_wrofs + i, CFI_BCS_BUF_PROG_SETUP); if (sbinuptime() > start + sc->sc_max_timeouts[CFI_TIMEOUT_BUFWRITE]) { + intr_restore(intr); error = ETIMEDOUT; goto out; } -- 2.12.3
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20170616072122.17504-1-sebastian.huber>