From: jsg Date: Wed, 28 Oct 2015 05:11:55 +0000 (+0000) Subject: missing splx in error path X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=58a1f4d5b471f77b0189ac92c37b78260f43e018;p=openbsd missing splx in error path same change made in the sparc equivalent a while ago --- diff --git a/sys/arch/sparc64/dev/z8530kbd.c b/sys/arch/sparc64/dev/z8530kbd.c index a37bbbe7ea0..ca203a6719b 100644 --- a/sys/arch/sparc64/dev/z8530kbd.c +++ b/sys/arch/sparc64/dev/z8530kbd.c @@ -1,4 +1,4 @@ -/* $OpenBSD: z8530kbd.c,v 1.26 2013/05/10 16:00:08 mikeb Exp $ */ +/* $OpenBSD: z8530kbd.c,v 1.27 2015/10/28 05:11:55 jsg Exp $ */ /* $NetBSD: z8530tty.c,v 1.77 2001/05/30 15:24:24 lukem Exp $ */ /*- @@ -585,8 +585,10 @@ zsenqueue_tx(v, str, len) u_int i; s = splzs(); - if (zst->zst_tbc + len > ZSKBD_RING_SIZE) + if (zst->zst_tbc + len > ZSKBD_RING_SIZE) { + splx(s); return (-1); + } zst->zst_tbc += len; for (i = 0; i < len; i++) { *zst->zst_tbp = str[i];