Steven Rostedt
d988ff94c1
ring-buffer: check for divide by zero in ring-buffer-benchmark
...
Although we check if "missed" is not zero, we divide by hit + missed,
and the addition can possible overflow and become a divide by zero.
This patch checks for this case, and will report it when it happens
then modify "hit" to make the calculation be non zero.
[ Impact: prevent possible divide by zero in ring-buffer-benchmark ]
Reported-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Steven Rostedt <rostedt@goodmis.org>
2009-05-11 13:22:26 -04:00
..
2009-05-07 11:17:34 +02:00
2009-04-24 15:31:30 -07:00
2009-05-02 10:22:27 +02:00
2009-05-11 13:22:26 -04:00
2009-04-20 23:01:15 -04:00
2009-04-05 13:49:04 -04:00
2009-04-05 13:40:33 -04:00
2009-04-05 13:49:04 -04:00
2009-04-02 19:04:54 -07:00
2009-04-02 19:04:55 -07:00
2009-04-02 19:04:57 -07:00
2009-04-14 22:05:43 -04:00
2009-04-05 11:04:19 -07:00
2009-05-07 13:36:22 +02:00
2009-04-02 19:05:04 -07:00
2009-04-07 08:31:08 -07:00
2009-04-14 22:05:43 -04:00
2009-05-07 11:17:34 +02:00
2009-04-24 10:11:23 +02:00
2009-04-17 16:59:15 +02:00
2009-04-09 19:28:24 +02:00
2009-04-02 19:04:53 -07:00
2009-04-23 09:36:52 +02:00
2009-04-02 19:04:58 -07:00
2009-04-02 19:05:02 -07:00
2009-04-30 08:08:31 +02:00
2009-04-05 10:23:25 -07:00
2009-05-07 13:36:22 +02:00
2009-04-03 12:23:02 +02:00
2009-04-15 13:55:14 -07:00
2009-04-03 12:23:04 +02:00
2009-04-14 11:31:50 +02:00
2009-04-14 11:31:50 +02:00
2009-04-03 12:23:03 +02:00
2009-04-05 11:04:19 -07:00
2009-04-18 21:44:24 -07:00
2009-04-08 17:26:00 +02:00
2009-05-07 13:36:22 +02:00
2009-04-14 22:05:43 -04:00
2009-04-24 07:47:59 -07:00
2009-05-07 11:17:34 +02:00
2009-04-02 19:05:11 -07:00
2009-04-13 15:04:32 -07:00
2009-05-02 15:36:10 -07:00
2009-04-09 10:35:30 -07:00
2009-04-02 19:05:01 -07:00
2009-04-09 09:50:37 +09:30