summaryrefslogtreecommitdiffstats
path: root/drivers/net/smc911x.c
diff options
context:
space:
mode:
authorAhmad Fatoum <a.fatoum@pengutronix.de>2023-06-12 14:53:31 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2023-06-13 09:01:21 +0200
commitcfcd097c843194a6b88b03948afca3c4c547eca6 (patch)
treeced37456247f24d67ec57e0b680f77e23498526d /drivers/net/smc911x.c
parentbd72a767b1b37e91b1c1cd9a65bae9fdb76d2f70 (diff)
downloadbarebox-cfcd097c843194a6b88b03948afca3c4c547eca6.tar.gz
barebox-cfcd097c843194a6b88b03948afca3c4c547eca6.tar.xz
regmap-mmio: fix use-after-free
Once we free ctx, dereferencing it to return ERR_CAST(ctx->clk) is forbidden. Fix this by using an intermediary variable. Signed-off-by: Ahmad Fatoum <a.fatoum@pengutronix.de> Link: https://lore.barebox.org/20230612125331.1085059-6-a.fatoum@pengutronix.de Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'drivers/net/smc911x.c')
0 files changed, 0 insertions, 0 deletions