Dan Carpenter
34066c1f96
devres: fix a for loop bounds check
...
commit 1f35d04a02a652f14566f875aef3a6f2af4cb77b upstream.
The iomap[] array has PCIM_IOMAP_MAX (6) elements and not
DEVICE_COUNT_RESOURCE (16). This bug was found using a static checker.
It may be that the "if (!(mask & (1 << i)))" check means we never
actually go past the end of the array in real life.
Fixes: ec04b075843d ('iomap: implement pcim_iounmap_regions()')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Tejun Heo <tj@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
(cherry picked from commit e7102453150c7081a27744989374c474d2ebea8e)
Signed-off-by: Willy Tarreau <w@1wt.eu>
2015-12-06 00:49:17 +01:00
..
2014-11-23 10:55:52 +01:00
2008-04-18 22:17:17 -04:00
2009-09-21 15:14:55 +02:00
2009-01-04 15:53:34 -08:00
2005-10-18 08:26:15 -07:00
2007-10-20 00:26:10 +02:00
2009-07-29 19:10:35 -07:00
2007-05-11 05:38:25 -04:00
2008-07-24 10:47:33 -07:00
2009-08-21 09:26:15 -07:00
2008-06-06 11:29:10 -07:00
2008-12-16 18:40:32 +01:00
2009-01-06 15:59:11 -08:00
2007-07-16 09:05:50 -07:00
2009-06-19 14:58:13 +02:00
2008-07-28 15:05:23 +02:00
2009-06-11 19:27:07 +03:00
2007-07-17 10:23:04 -07:00
2006-06-25 10:01:20 -07:00
2008-02-03 17:48:52 +02:00
2005-04-16 15:20:36 -07:00
2006-06-25 10:01:20 -07:00
2007-05-10 18:24:13 +02:00
2008-07-12 08:22:32 -05:00
2005-04-16 15:20:36 -07:00
2009-04-12 16:10:51 +02:00
2011-07-13 05:29:24 +02:00
2009-06-16 19:47:47 -07:00
2009-08-07 10:39:56 -07:00
2009-09-24 07:21:05 -07:00
2009-09-24 07:21:05 -07:00
2009-02-19 13:36:55 -08:00
2015-12-06 00:49:17 +01:00
2008-06-12 10:47:58 +02:00
2010-01-18 10:19:33 -08:00
2005-04-16 15:20:36 -07:00
2009-07-28 13:45:22 -07:00
2009-06-12 21:47:04 +09:30
2009-10-11 11:20:58 -07:00
2009-01-01 10:12:19 +10:30
2008-04-29 08:11:16 -07:00
2010-05-12 14:57:00 -07:00
2009-06-18 13:04:05 -07:00
2005-04-16 15:20:36 -07:00
2013-06-10 11:42:24 +02:00
2005-04-16 15:20:36 -07:00
2009-06-16 19:47:51 -07:00
2007-10-19 11:53:41 -07:00
2010-03-15 08:49:37 -07:00
2009-09-15 09:37:12 -07:00
2006-02-03 08:32:08 -08:00
2006-06-20 20:24:58 -07:00
2008-07-26 12:00:07 -07:00
2008-10-16 11:21:33 -07:00
2007-10-17 08:42:50 -07:00
2006-10-06 08:53:40 -07:00
2009-07-17 09:11:31 +10:00
2007-07-31 15:39:39 -07:00
2009-06-15 13:27:38 +10:00
2009-10-27 16:42:42 +11:00
2008-08-01 08:39:34 -05:00
2009-07-01 22:28:44 +02:00
2009-03-06 12:48:55 +01:00
2009-01-06 10:44:30 -08:00
2011-11-07 12:32:25 -08:00
2009-06-15 21:30:24 -07:00
2008-01-24 20:40:05 -08:00
2010-04-01 15:58:56 -07:00
2008-12-25 11:01:42 +11:00
2008-07-25 10:53:29 -07:00
2009-08-27 12:25:26 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2006-07-03 15:27:03 -07:00
2011-06-23 15:24:02 -07:00
2011-08-15 18:57:20 -07:00
2011-08-15 18:57:20 -07:00
2014-05-19 07:54:17 +02:00
2008-10-13 10:10:37 -07:00
2010-12-09 13:26:37 -08:00
2008-07-26 12:00:07 -07:00
2009-01-06 15:59:11 -08:00
2005-04-16 15:20:36 -07:00
2009-01-06 17:10:04 -08:00
2009-11-19 18:11:29 +00:00
2014-05-19 07:53:57 +02:00
2008-07-28 16:30:20 -07:00
2010-01-18 10:19:33 -08:00
2009-06-16 19:47:56 -07:00
2006-12-13 09:05:49 -08:00
2008-02-08 09:22:31 -08:00
2008-01-30 13:33:00 +01:00
2009-07-31 12:28:45 +02:00
2007-02-11 10:51:32 -08:00
2008-07-26 12:00:10 -07:00
2009-01-30 15:47:34 +01:00
2009-01-08 08:31:14 -08:00
2007-10-19 11:53:43 -07:00
2008-10-23 11:42:20 -05:00
2009-11-18 17:18:13 -08:00
2011-03-03 08:23:19 -08:00
2008-07-26 12:00:10 -07:00
2008-07-22 19:24:31 +10:00
2008-07-08 02:37:54 -07:00
2008-07-08 02:38:27 -07:00
2008-07-08 02:38:09 -07:00
2009-10-01 16:11:16 -07:00