[PATCH master 6/6] regmap-mmio: fix use-after-free
Sascha Hauer
sha at pengutronix.de
Tue Jun 13 00:11:11 PDT 2023
On Mon, Jun 12, 2023 at 02:53:31PM +0200, Ahmad Fatoum wrote:
> Once we free ctx, dereferencing it to return ERR_CAST(ctx->clk) is
> verboten. Fix this by using an intermediary variable.
Looks funny like this, but replaced with forbidden for the non german
speakers ;)
Applied all, thanks
Sascha
--
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 |
More information about the barebox
mailing list