summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortodd <todd@openbsd.org>2007-02-26 04:00:25 +0000
committertodd <todd@openbsd.org>2007-02-26 04:00:25 +0000
commit37bb978ea3c89833c69267763d77a12b0c516ce2 (patch)
treef9695e2275293e38c6f25ab540eaad45939f492e
parentdon't leak memory, from dhclient; ok krw@ (diff)
downloadwireguard-openbsd-37bb978ea3c89833c69267763d77a12b0c516ce2.tar.xz
wireguard-openbsd-37bb978ea3c89833c69267763d77a12b0c516ce2.zip
This fixes the function names printed in the panic strings so that
the correct function names are being used, this is msk(4), not sk(4). from brad@
-rw-r--r--sys/dev/pci/if_msk.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/sys/dev/pci/if_msk.c b/sys/dev/pci/if_msk.c
index 65cac0cead9..c023403a30c 100644
--- a/sys/dev/pci/if_msk.c
+++ b/sys/dev/pci/if_msk.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_msk.c,v 1.49 2007/02/13 20:10:33 kettenis Exp $ */
+/* $OpenBSD: if_msk.c,v 1.50 2007/02/26 04:00:25 todd Exp $ */
/*
* Copyright (c) 1997, 1998, 1999, 2000
@@ -683,14 +683,14 @@ msk_jfree(caddr_t buf, u_int size, void *arg)
sc = (struct sk_if_softc *)arg;
if (sc == NULL)
- panic("sk_jfree: can't find softc pointer!");
+ panic("msk_jfree: can't find softc pointer!");
/* calculate the slot this buffer belongs to */
i = ((vaddr_t)buf
- (vaddr_t)sc->sk_cdata.sk_jumbo_buf) / SK_JLEN;
if ((i < 0) || (i >= MSK_JSLOTS))
- panic("sk_jfree: asked to free buffer that we don't manage!");
+ panic("msk_jfree: asked to free buffer that we don't manage!");
entry = LIST_FIRST(&sc->sk_jinuse_listhead);
if (entry == NULL)