summaryrefslogtreecommitdiff
path: root/sys/dev/sk
diff options
context:
space:
mode:
authorJohn-Mark Gurney <jmg@FreeBSD.org>2004-11-15 22:24:32 +0000
committerJohn-Mark Gurney <jmg@FreeBSD.org>2004-11-15 22:24:32 +0000
commitc42f1704771f1f0ea8b658c8eec33d4da7745e27 (patch)
tree0f1af5a8ee03d1748982400bb8e96dc06598542f /sys/dev/sk
parent8352b1925d56e3fada37846769aa3c17821c5346 (diff)
Notes
Diffstat (limited to 'sys/dev/sk')
-rw-r--r--sys/dev/sk/if_sk.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/sk/if_sk.c b/sys/dev/sk/if_sk.c
index 2bc4f15f603b..d1ce5acc0a26 100644
--- a/sys/dev/sk/if_sk.c
+++ b/sys/dev/sk/if_sk.c
@@ -1106,11 +1106,11 @@ sk_jfree(buf, args)
/* Extract the softc struct pointer. */
sc_if = (struct sk_if_softc *)args;
- SK_IF_LOCK(sc_if);
-
if (sc_if == NULL)
panic("sk_jfree: didn't get softc pointer!");
+ SK_IF_LOCK(sc_if);
+
/* calculate the slot this buffer belongs to */
i = ((vm_offset_t)buf
- (vm_offset_t)sc_if->sk_cdata.sk_jumbo_buf) / SK_JLEN;