Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1719027
| From | Maxime Ripard <maxime.ripard@free-electrons.com> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | Re: [PATCH] clk: sunxi: fix uninitialized access |
| Date | 2017-08-24 11:00 +0200 |
| Message-ID | <uhW9z-4bT-11@gated-at.bofh.it> (permalink) |
| References | <uhF8L-1Mw-29@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
[Multipart message — attachments visible in raw view] - view raw
On Wed, Aug 23, 2017 at 04:39:27PM +0200, Arnd Bergmann wrote:
> gcc-8 reports an uninitialized variable access in a code path
> that we would see with incorrect DTB input:
>
> drivers/clk/sunxi/clk-sun8i-bus-gates.c: In function 'sun8i_h3_bus_gates_init':
> drivers/clk/sunxi/clk-sun8i-bus-gates.c:85:27: error: 'clk_parent' may be used uninitialized in this function [-Werror=maybe-uninitialized]
>
> This works around by skipping invalid input and printing a warning
> instead if it ever happens. The problem was apparently part of the
> initiali driver submission, but older compilers don't notice it.
>
> Fixes: ab6e23a4e388 ("clk: sunxi: Add H3 clocks support")
> Signed-off-by: Arnd Bergmann <arnd@arndb.de>
That's weird it stayed for that long without any compiler noticing.
Acked-by: Maxime Ripard <maxime.ripard@free-electrons.com>
Mike, Stephen, can you pick it up as a fix? We don't have anything
else coming your way.
Thanks!
Maxime
--
Maxime Ripard, Free Electrons
Embedded Linux and Kernel engineering
http://free-electrons.com
Back to linux.kernel | Previous | Next — Previous in thread | Find similar | Unroll thread
[PATCH] clk: sunxi: fix uninitialized access Arnd Bergmann <arnd@arndb.de> - 2017-08-23 16:50 +0200 Re: [PATCH] clk: sunxi: fix uninitialized access Maxime Ripard <maxime.ripard@free-electrons.com> - 2017-08-24 11:00 +0200
csiph-web