move the lock after the NULL check so we don't have a hard(er) to diagnose
panic... Pointed out by: Bjoern A. Zeeb
This commit is contained in:
parent
9d0ddae9ae
commit
7967ff7fc6
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user