Re: [PATCH] clk: fix NULL deref without OF node in debug message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Nov 20, 2018 at 10:40:33AM +0100, matthias.schiffer@xxxxxxxxxxxxxxx wrote:
> From: Matthias Schiffer <matthias.schiffer@xxxxxxxxxxxxxxx>
> 
> of_clk_add_provider() may be called for devices added via
> add_generic_device(). There is no OF node in this case, leading to a crash
> when debug logs are enabled.
> 
> This affects various i.MX CPUs, which add imx*-ccm clock devices using
> add_generic_device().
> 
> Signed-off-by: Matthias Schiffer <matthias.schiffer@xxxxxxxxxxxxxxx>
> ---
>  drivers/clk/clk.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)

Applied this one and the third one for now.

Sascha


-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@xxxxxxxxxxxxxxxxxxx
http://lists.infradead.org/mailman/listinfo/barebox



[Index of Archives]     [Linux Embedded]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [XFree86]

  Powered by Linux