Re: [PATCH] ep93xx: clock: Fix UAF in mach-ep93xx/clock.c

From: Greg KH
Date: Wed Apr 27 2022 - 00:55:12 EST


On Wed, Apr 27, 2022 at 10:21:11AM +0800, Wan Jiabing wrote:
> Fix following coccicheck errors:
> ./arch/arm/mach-ep93xx/clock.c:351:9-12: ERROR: reference preceded by free on line 349
> ./arch/arm/mach-ep93xx/clock.c:458:9-12: ERROR: reference preceded by free on line 456
>
> Fix two more potential UAF errors.
>
> Link: https://lore.kernel.org/all/20220418121212.634259061@xxxxxxxxxxxxxxxxxxx/
> Fixes: 9645ccc7bd7a ("ep93xx: clock: convert in-place to COMMON_CLK")
> Signed-off-by: Wan Jiabing <wanjiabing@xxxxxxxx>
> ---
> arch/arm/mach-ep93xx/clock.c | 8 ++++++--
> 1 file changed, 6 insertions(+), 2 deletions(-)

<formletter>

This is not the correct way to submit patches for inclusion in the
stable kernel tree. Please read:
https://www.kernel.org/doc/html/latest/process/stable-kernel-rules.html
for how to do this properly.

</formletter>