Bjørn Mork
44f6731d8b
cdc_ncm: Fix tx_bytes statistics
...
The tx_curr_frame_payload field is u32. When we try to calculate a
small negative delta based on it, we end up with a positive integer
close to 2^32 instead. So the tx_bytes pointer increases by about
2^32 for every transmitted frame.
Fix by calculating the delta as a signed long.
Cc: Ben Hutchings <ben.hutchings@codethink.co.uk>
Reported-by: Florian Bruhin <me@the-compiler.org>
Fixes: 7a1e890e2168 ("usbnet: Fix tx_bytes statistic running backward in cdc_ncm")
Signed-off-by: Bjørn Mork <bjorn@mork.no>
Signed-off-by: David S. Miller <davem@davemloft.net>
2015-05-22 14:26:31 -04:00
..
2015-05-07 21:24:34 +02:00
2015-05-11 10:54:20 -07:00
2015-04-26 17:22:07 -07:00
2015-04-17 15:50:54 -04:00
2015-05-08 19:49:35 -07:00
2015-05-13 23:04:20 +02:00
2015-05-07 18:29:18 +02:00
2015-05-05 19:37:22 -05:00
2015-04-22 09:20:15 -07:00
2015-04-24 08:23:45 -07:00
2015-04-15 23:02:24 +02:00
2015-04-29 15:19:21 +02:00
2015-04-26 13:51:05 -07:00
2015-04-29 16:47:57 +05:30
2015-04-21 14:47:16 +05:30
2015-04-21 09:42:58 -07:00
2015-05-06 10:57:37 -07:00
2015-05-06 15:19:38 +02:00
2015-05-11 06:06:22 +10:00
2015-04-14 18:25:15 -07:00
2015-04-05 14:45:27 +02:00
2015-04-17 09:03:55 -04:00
2015-04-21 09:42:58 -07:00
2015-04-26 17:44:09 -07:00
2015-05-11 10:54:20 -07:00
2015-04-14 20:21:54 -07:00
2015-04-14 09:50:27 -07:00
2015-05-12 15:52:37 -04:00
2015-04-26 13:36:02 -07:00
2015-05-11 18:36:20 +02:00
2015-05-09 14:59:05 -07:00
2015-04-15 09:00:47 -07:00
2015-04-18 08:22:10 -04:00
2015-04-22 10:55:06 -07:00
2015-04-07 13:25:14 +10:00
2015-05-11 10:33:31 -07:00
2015-05-05 08:42:06 -07:00
2015-04-22 09:18:17 -07:00
2015-04-17 09:04:09 -04:00
2015-04-26 13:36:02 -07:00
2015-04-21 09:42:58 -07:00
2015-05-08 08:55:47 +02:00
2015-04-26 17:22:07 -07:00
2015-05-22 14:26:31 -04:00
2015-04-07 12:05:12 +02:00
2015-04-24 08:46:18 -07:00
2015-04-26 17:22:07 -07:00
2015-04-21 22:02:43 +02:00
2015-04-16 14:01:03 -05:00
2015-04-22 09:04:39 -07:00
2015-04-13 17:07:21 -07:00
2015-05-08 19:42:59 -07:00
2015-05-05 13:56:46 -07:00
2015-04-14 20:21:54 -07:00
2015-05-01 23:01:48 +02:00
2015-04-15 23:06:16 +02:00
2015-04-23 14:50:52 +02:00
2015-04-14 17:29:55 -07:00
2015-05-05 17:10:11 -07:00
2015-04-23 16:55:50 +02:00
2015-04-15 16:35:23 -07:00
2015-04-27 10:10:19 -07:00
2015-04-27 13:08:14 +09:00
2015-04-14 00:43:28 +02:00
2015-05-11 17:29:49 +01:00
2015-04-17 15:50:54 -04:00
2015-05-05 08:42:06 -07:00
2015-04-24 10:22:09 -07:00
2015-04-07 13:43:28 -07:00
2015-05-06 15:58:06 -07:00
2015-04-28 12:53:16 +02:00
2015-05-01 16:31:41 -06:00
2015-04-24 10:22:09 -07:00
2015-04-20 15:16:25 -07:00
2015-04-15 12:41:14 +09:30
2015-04-22 11:22:55 -07:00
2015-05-06 15:02:58 +01:00