diff options
author | Kevin Lo <kevlo@cvs.openbsd.org> | 2020-11-27 00:13:16 +0000 |
---|---|---|
committer | Kevin Lo <kevlo@cvs.openbsd.org> | 2020-11-27 00:13:16 +0000 |
commit | f55b0b1b9d3abed4739593e85dfa601293ffcdf9 (patch) | |
tree | 5dc3ab438193c076eeb697bd91cbe53c237bb286 /sys/dev/pci/if_myx.c | |
parent | 14dc6b4454bdf575725083c775ce807154b5cadf (diff) |
Add initialization of sc_sff_lock rwlock.
ok semarie@
Diffstat (limited to 'sys/dev/pci/if_myx.c')
-rw-r--r-- | sys/dev/pci/if_myx.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/dev/pci/if_myx.c b/sys/dev/pci/if_myx.c index 8c486140ed8..1e9924c0e99 100644 --- a/sys/dev/pci/if_myx.c +++ b/sys/dev/pci/if_myx.c @@ -1,4 +1,4 @@ -/* $OpenBSD: if_myx.c,v 1.111 2020/07/17 03:37:36 dlg Exp $ */ +/* $OpenBSD: if_myx.c,v 1.112 2020/11/27 00:13:15 kevlo Exp $ */ /* * Copyright (c) 2007 Reyk Floeter <reyk@openbsd.org> @@ -270,6 +270,8 @@ myx_attach(struct device *parent, struct device *self, void *aux) char part[32]; pcireg_t memtype; + rw_init(&sc->sc_sff_lock, "myxsff"); + sc->sc_pc = pa->pa_pc; sc->sc_tag = pa->pa_tag; sc->sc_dmat = pa->pa_dmat; |