On Mon, Sep 05, 2022 at 12:07:15PM +0200, Michael Riesch wrote: > Hi all, > > The function of_overlay_fix_path returns NULL in certain error cases but > of_overlay_apply_symbols (which is the only caller) does not check the > return value. For broken overlays this may result in a null pointer > exception. Fix this by checking the return value and inform the user > what exactly went wrong. To this end, improve the error handling in > of_overlay_apply_tree. > > The thread [0] gives a bit more context. > > Best regards, > Michael > > [0] https://lore.barebox.org/barebox/95ff064f-aa11-c1ce-9d41-e38f2040c565@xxxxxxxxxxxxxx/T/#u > > Michael Riesch (2): > of: overlay: improve error handling in of_overlay_apply_tree > of: overlay: avoid potential null pointer exception Applied, thanks Sascha > > drivers/of/overlay.c | 18 +++++++++++++----- > 1 file changed, 13 insertions(+), 5 deletions(-) > > -- > 2.30.2 > > > -- Pengutronix e.K. | | Steuerwalder Str. 21 | http://www.pengutronix.de/ | 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 |