diff options
author | jmg <jmg@FreeBSD.org> | 2004-08-20 06:22:04 +0000 |
---|---|---|
committer | jmg <jmg@FreeBSD.org> | 2004-08-20 06:22:04 +0000 |
commit | 76c33d7c994317b5fe40c14516a3c151f9a8f843 (patch) | |
tree | 051863b3d227554ca8a49f3c7035d4b07b334796 /sys/pci/if_skreg.h | |
parent | 3e339883075f86044be58432bdb882b73964acd2 (diff) | |
download | FreeBSD-src-76c33d7c994317b5fe40c14516a3c151f9a8f843.zip FreeBSD-src-76c33d7c994317b5fe40c14516a3c151f9a8f843.tar.gz |
fix LOR's in sk. Original patch from dwhite. This moves the memory
allocation earlier on in sk_attach so we don't have to lock until a bit
later.
PR: 69752
Diffstat (limited to 'sys/pci/if_skreg.h')
-rw-r--r-- | sys/pci/if_skreg.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/if_skreg.h b/sys/pci/if_skreg.h index 51ce15d..2ef61c4 100644 --- a/sys/pci/if_skreg.h +++ b/sys/pci/if_skreg.h @@ -1439,8 +1439,8 @@ struct sk_softc { #define SK_LOCK(_sc) mtx_lock(&(_sc)->sk_mtx) #define SK_UNLOCK(_sc) mtx_unlock(&(_sc)->sk_mtx) #define SK_LOCK_ASSERT(_sc) mtx_assert(&(_sc)->sk_mtx, MA_OWNED) -#define SK_IF_LOCK(_sc) mtx_lock(&(_sc)->sk_softc->sk_mtx) -#define SK_IF_UNLOCK(_sc) mtx_unlock(&(_sc)->sk_softc->sk_mtx) +#define SK_IF_LOCK(_sc) SK_LOCK((_sc)->sk_softc) +#define SK_IF_UNLOCK(_sc) SK_UNLOCK((_sc)->sk_softc) /* Softc for each logical interface */ struct sk_if_softc { |