Message ID | 57a831d94ee2b3889b11525d4ad500356f89576f.1697492890.git.gustavoars@kernel.org (mailing list archive) |
---|---|
State | Accepted, archived |
Headers | show |
Series | clk: visconti: Fix undefined behavior bug and add bounds-checking coverage | expand |
>> Fixes: b4cbe606dc36 ("clk: visconti: Add support common clock driver and reset driver") >> Cc: stable@vger.kernel.org >> Reviewed-by: Kees Cook <keescook@chromium.org> >> Acked-by: Nobuhiro Iwamatsu <nobuhiro1.iwamatsu@toshiba.co.jp> >> Signed-off-by: Gustavo A. R. Silva <gustavoars@kernel.org> >> --- > > Applied to clk-next Hi! Here is another similar small series, in case you missed it: https://lore.kernel.org/linux-hardening/cover.1697493574.git.gustavoars@kernel.org/ Thanks -- Gustavo
diff --git a/drivers/clk/visconti/pll.h b/drivers/clk/visconti/pll.h index 01d07f1bf01b..c4bd40676da4 100644 --- a/drivers/clk/visconti/pll.h +++ b/drivers/clk/visconti/pll.h @@ -15,8 +15,10 @@ struct visconti_pll_provider { void __iomem *reg_base; - struct clk_hw_onecell_data clk_data; struct device_node *node; + + /* Must be last */ + struct clk_hw_onecell_data clk_data; }; #define VISCONTI_PLL_RATE(_rate, _dacen, _dsmen, \