diff options
author | 2015-10-28 05:11:55 +0000 | |
---|---|---|
committer | 2015-10-28 05:11:55 +0000 | |
commit | 58a1f4d5b471f77b0189ac92c37b78260f43e018 (patch) | |
tree | 8c71f03782505ede978f71839e37655d376cc5d0 | |
parent | support kern.cptime also (diff) | |
download | wireguard-openbsd-58a1f4d5b471f77b0189ac92c37b78260f43e018.tar.xz wireguard-openbsd-58a1f4d5b471f77b0189ac92c37b78260f43e018.zip |
missing splx in error path
same change made in the sparc equivalent a while ago
-rw-r--r-- | sys/arch/sparc64/dev/z8530kbd.c | 6 |
1 files changed, 4 insertions, 2 deletions
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]; |