Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/dev/pci Our softc is the private data of self, not paren...



details:   https://anonhg.NetBSD.org/src/rev/5785a7b2c13d
branches:  trunk
changeset: 446247:5785a7b2c13d
user:      jmcneill <jmcneill%NetBSD.org@localhost>
date:      Wed Nov 28 19:07:49 2018 +0000

description:
Our softc is the private data of self, not parent. Spotted by mlelstv@

diffstat:

 sys/dev/pci/if_ena.c |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (21 lines):

diff -r 2a347f9be498 -r 5785a7b2c13d sys/dev/pci/if_ena.c
--- a/sys/dev/pci/if_ena.c      Wed Nov 28 19:06:54 2018 +0000
+++ b/sys/dev/pci/if_ena.c      Wed Nov 28 19:07:49 2018 +0000
@@ -31,7 +31,7 @@
 #if 0
 __FBSDID("$FreeBSD: head/sys/dev/ena/ena.c 333456 2018-05-10 09:37:54Z mw $");
 #endif
-__KERNEL_RCSID(0, "$NetBSD: if_ena.c,v 1.7 2018/11/28 16:51:41 jdolecek Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_ena.c,v 1.8 2018/11/28 19:07:49 jmcneill Exp $");
 
 #include <sys/param.h>
 #include <sys/systm.h>
@@ -3626,7 +3626,7 @@
        struct pci_attach_args *pa = aux;
        struct ena_com_dev_get_features_ctx get_feat_ctx;
        static int version_printed;
-       struct ena_adapter *adapter = device_private(parent);
+       struct ena_adapter *adapter = device_private(self);
        struct ena_com_dev *ena_dev = NULL;
        uint16_t tx_sgl_size = 0;
        uint16_t rx_sgl_size = 0;



Home | Main Index | Thread Index | Old Index