Commit 16fa090013c4ba1fb5eac4b9cfbe2dda4dc0691c

Kano 2013-01-23T22:39:26

usbutils stats_initialised not set

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/usbutils.c b/usbutils.c
index 9eab1e1..3c03510 100644
--- a/usbutils.c
+++ b/usbutils.c
@@ -570,6 +570,8 @@ static void cgusb_check_init()
 		usb_commands[C_SETMODEM] = C_SETMODEM_S;
 		usb_commands[C_PURGERX] = C_PURGERX_S;
 		usb_commands[C_PURGETX] = C_PURGETX_S;
+
+		stats_initialised = true;
 	}
 
 	mutex_unlock(&cgusb_lock);