summaryrefslogtreecommitdiff
path: root/sys/dev/usb/if_urndisreg.h
diff options
context:
space:
mode:
authorMartin Pieuchot <mpi@cvs.openbsd.org>2013-11-21 14:08:06 +0000
committerMartin Pieuchot <mpi@cvs.openbsd.org>2013-11-21 14:08:06 +0000
commitbd24ef8c0a4c905395e7c148c378c2a7bde3f48e (patch)
tree7365ef6eabb545f07bec3647cd3b85f3e4c9ae92 /sys/dev/usb/if_urndisreg.h
parente0c1f2193269d71f3efb992f1176fa75b8574084 (diff)
Revert r1.41, in this driver sc_attached does not indicate that the
driver is not yet attached, it is here to prevent the driver to free unitialized structures in case something wrong happened during the the initialization... Found the hard way and ok giovanni@
Diffstat (limited to 'sys/dev/usb/if_urndisreg.h')
-rw-r--r--sys/dev/usb/if_urndisreg.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/usb/if_urndisreg.h b/sys/dev/usb/if_urndisreg.h
index a801872bc55..54cc658f5e3 100644
--- a/sys/dev/usb/if_urndisreg.h
+++ b/sys/dev/usb/if_urndisreg.h
@@ -1,4 +1,4 @@
-/* $OpenBSD: if_urndisreg.h,v 1.18 2013/11/08 10:12:20 pirofti Exp $ */
+/* $OpenBSD: if_urndisreg.h,v 1.19 2013/11/21 14:08:05 mpi Exp $ */
/*
* Copyright (c) 2010 Jonathan Armani <armani@openbsd.org>
@@ -41,6 +41,7 @@ struct urndis_cdata {
struct urndis_softc {
struct device sc_dev;
+ char sc_attached;
struct arpcom sc_arpcom;
/* RNDIS device info */