Re: [PATCH -next] posix-clock: Fix missing put_clock_desc()

From: Richard Cochran
Date: Thu Oct 17 2024 - 10:09:59 EST


On Thu, Oct 17, 2024 at 09:32:49PM +0800, Jinjie Ruan wrote:
> After get_clock_desc(), it should call put_clock_desc()
> if timespec64_valid_strict() check fails, put it ahead to avoid this.
>
> Fixes: d8794ac20a29 ("posix-clock: Fix missing timespec64 check in pc_clock_settime()")
> Signed-off-by: Jinjie Ruan <ruanjinjie@xxxxxxxxxx>

Nice catch!

Acked-by: Richard Cochran <richardcochran@xxxxxxxxx>