summaryrefslogtreecommitdiffstats
path: root/drivers/usb/gadget/u_eem.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/usb/gadget/u_eem.h')
-rw-r--r--drivers/usb/gadget/u_eem.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/usb/gadget/u_eem.h b/drivers/usb/gadget/u_eem.h
index 8f432f2a5e57..e3ae97874c4f 100644
--- a/drivers/usb/gadget/u_eem.h
+++ b/drivers/usb/gadget/u_eem.h
@@ -22,6 +22,15 @@ struct f_eem_opts {
struct usb_function_instance func_inst;
struct net_device *net;
bool bound;
+
+ /*
+ * Read/write access to configfs attributes is handled by configfs.
+ *
+ * This is to protect the data from concurrent access by read/write
+ * and create symlink/remove symlink.
+ */
+ struct mutex lock;
+ int refcnt;
};
#endif /* U_EEM_H */