Dan Carpenter
d9f5b7f5dd
clk: mvebu: Off by one bugs in cp110_of_clk_get()
...
These > comparisons should be >= to prevent reading beyond the end of
of the clk_data->hws[] buffer.
The clk_data->hws[] array is allocated in cp110_syscon_common_probe()
when we do:
cp110_clk_data = devm_kzalloc(dev, sizeof(*cp110_clk_data) +
sizeof(struct clk_hw *) * CP110_CLK_NUM,
GFP_KERNEL);
As you can see, it has CP110_CLK_NUM elements which is equivalent to
CP110_MAX_CORE_CLOCKS + CP110_MAX_GATABLE_CLOCKS.
Fixes: d3da3eaef7 ("clk: mvebu: new driver for Armada CP110 system controller")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com >
Signed-off-by: Stephen Boyd <sboyd@kernel.org >
2018-12-03 09:54:48 -08:00
..
2018-11-02 11:22:45 -07:00
2018-10-26 08:21:04 -06:00
2018-10-18 15:39:10 -07:00
2018-11-01 18:34:46 -07:00
2018-10-31 08:54:17 -07:00
2018-11-02 11:25:48 -07:00
2018-10-24 14:43:41 +01:00
2018-10-29 15:16:01 -07:00
2018-10-25 11:17:40 -06:00
2018-10-27 09:24:24 -07:00
2018-12-03 09:54:48 -08:00
2018-11-04 08:15:15 -08:00
2018-10-25 18:39:02 +02:00
2018-10-30 09:08:07 -07:00
2018-10-25 16:43:35 -07:00
2018-10-25 06:50:48 -07:00
2018-11-02 11:17:22 -07:00
2018-11-03 18:25:17 -07:00
2018-10-16 11:13:50 +02:00
2018-10-24 00:41:07 +01:00
2018-10-25 06:50:48 -07:00
2018-11-02 10:58:20 -07:00
2018-11-01 08:42:21 -07:00
2018-10-15 20:54:17 +02:00
2018-10-23 09:42:05 +01:00
2018-10-11 12:12:55 +02:00
2018-10-31 23:33:34 +00:00
2018-10-23 13:32:18 +01:00
2018-10-29 10:38:10 -07:00
2018-10-26 16:25:19 -07:00
2018-10-28 11:35:40 -07:00
2018-10-31 08:54:16 -07:00
2018-11-01 12:38:48 +01:00
2018-11-01 19:58:52 -07:00
2018-10-26 20:51:36 +02:00
2018-10-09 08:25:08 -06:00
2018-10-31 08:54:16 -07:00
2018-10-29 10:30:44 -07:00
2018-11-02 11:25:48 -07:00
2018-10-31 10:53:29 -07:00
2018-10-31 16:47:55 -07:00
2018-11-01 19:58:52 -07:00
2018-10-23 13:32:18 +01:00
2018-11-04 14:46:04 -08:00
2018-10-23 08:45:05 +01:00
2018-11-04 08:12:44 -08:00
2018-10-23 13:28:53 -05:00
2018-11-01 10:33:12 -04:00
2018-10-25 06:31:56 -07:00
2018-11-02 11:25:48 -07:00
2018-10-15 15:56:15 +02:00
2018-11-01 14:45:38 -07:00
2018-10-17 17:22:26 +02:00
2018-10-28 11:35:40 -07:00
2018-10-26 14:36:21 -07:00
2018-10-22 17:30:06 +01:00
2018-10-26 08:14:13 -07:00
2018-10-23 08:45:05 +01:00
2018-11-01 08:42:21 -07:00
2018-10-26 12:09:58 -07:00
2018-10-23 13:32:18 +01:00
2018-10-28 19:20:06 -07:00
2018-10-16 13:16:15 +02:00
2018-10-23 01:54:44 +01:00
2018-10-19 12:54:03 -07:00
2018-10-29 15:16:01 -07:00
2018-10-25 02:35:42 +02:00
2018-10-31 08:54:16 -07:00
2018-10-07 22:42:00 -07:00
2018-11-03 10:47:33 -07:00
2018-10-31 08:54:16 -07:00
2018-11-02 11:22:09 -07:00
2018-10-25 06:19:15 -07:00
2018-10-31 10:53:29 -07:00
2018-11-03 10:34:03 -07:00
2018-10-11 09:16:44 -07:00
2018-10-31 11:28:12 -07:00
2018-10-08 15:33:21 +02:00
2018-10-31 08:54:16 -07:00
2018-11-01 19:58:52 -07:00
2018-10-31 11:01:38 -07:00
2018-11-01 14:42:49 -07:00
2018-10-31 11:41:37 -07:00
2018-10-24 20:57:55 -04:00
2018-10-15 20:50:32 +02:00
2018-10-22 10:16:28 +02:00
2018-11-01 19:58:52 -07:00