diff options
Diffstat (limited to 'drivers/usb/mon/mon_main.c')
-rw-r--r-- | drivers/usb/mon/mon_main.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/drivers/usb/mon/mon_main.c b/drivers/usb/mon/mon_main.c index 6ecc27302211..86db92b4915b 100644 --- a/drivers/usb/mon/mon_main.c +++ b/drivers/usb/mon/mon_main.c | |||
@@ -97,6 +97,7 @@ static void mon_submit(struct usb_bus *ubus, struct urb *urb) | |||
97 | if (mbus->nreaders == 0) | 97 | if (mbus->nreaders == 0) |
98 | goto out_locked; | 98 | goto out_locked; |
99 | 99 | ||
100 | mbus->cnt_events++; | ||
100 | list_for_each (pos, &mbus->r_list) { | 101 | list_for_each (pos, &mbus->r_list) { |
101 | r = list_entry(pos, struct mon_reader, r_link); | 102 | r = list_entry(pos, struct mon_reader, r_link); |
102 | r->rnf_submit(r->r_data, urb); | 103 | r->rnf_submit(r->r_data, urb); |
@@ -152,6 +153,7 @@ static void mon_complete(struct usb_bus *ubus, struct urb *urb) | |||
152 | } | 153 | } |
153 | 154 | ||
154 | spin_lock_irqsave(&mbus->lock, flags); | 155 | spin_lock_irqsave(&mbus->lock, flags); |
156 | mbus->cnt_events++; | ||
155 | list_for_each (pos, &mbus->r_list) { | 157 | list_for_each (pos, &mbus->r_list) { |
156 | r = list_entry(pos, struct mon_reader, r_link); | 158 | r = list_entry(pos, struct mon_reader, r_link); |
157 | r->rnf_complete(r->r_data, urb); | 159 | r->rnf_complete(r->r_data, urb); |
@@ -163,7 +165,6 @@ static void mon_complete(struct usb_bus *ubus, struct urb *urb) | |||
163 | 165 | ||
164 | /* | 166 | /* |
165 | * Stop monitoring. | 167 | * Stop monitoring. |
166 | * Obviously this must be well locked, so no need to play with mb's. | ||
167 | */ | 168 | */ |
168 | static void mon_stop(struct mon_bus *mbus) | 169 | static void mon_stop(struct mon_bus *mbus) |
169 | { | 170 | { |