Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(7533)

Unified Diff: drivers/net/usb/gobi/structs.h

Issue 6612045: CHROMIUM: gobi: Fix races in qc_deregister() once and for all. (Closed) Base URL: ssh://git@gitrw.chromium.org:9222/kernel.git@master
Patch Set: Remove bogus initializer. Created 9 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « drivers/net/usb/gobi/qmidevice.c ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: drivers/net/usb/gobi/structs.h
diff --git a/drivers/net/usb/gobi/structs.h b/drivers/net/usb/gobi/structs.h
index 7a89c5c05394b7702029a04071f9f7da5181f91f..13b378832eeaf11675bf98cf349c2a7fb6540e3f 100644
--- a/drivers/net/usb/gobi/structs.h
+++ b/drivers/net/usb/gobi/structs.h
@@ -25,6 +25,7 @@
#include <linux/usb.h>
#include <linux/version.h>
#include <linux/cdev.h>
+#include <linux/kobject.h>
#include <linux/kthread.h>
#include <linux/usb/usbnet.h>
@@ -78,12 +79,15 @@ enum {
};
struct qcusbnet {
+ struct list_head node;
+ struct kref refcount;
struct usbnet *usbnet;
struct usb_interface *iface;
int (*open)(struct net_device *);
int (*stop)(struct net_device *);
unsigned long down;
bool valid;
+ bool dying;
struct qmidev qmi;
char meid[14];
struct worker worker;
« no previous file with comments | « drivers/net/usb/gobi/qmidevice.c ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698