Re: [PATCH] vdso/gettimeofday: Clean up read of tz_minuteswest and tz_dsttime

From: Nam Cao

Date: Wed Sep 02 2026 - 10:10:56 EST


Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx> writes:
> When these fields got moved from 'struct vdso_time_data' to the new
> 'struct vdso_clock', this access was forgotten.
>
> 'vd' is not an array, but a pointer to a single structure. The code
> works by accident in its current form as CS_HRES_COARSE is 0.
>
> Replace the incorrect array access with a regular pointer dereference.
>
> Fixes: 886653e36639 ("vdso: Rework struct vdso_time_data and introduce struct vdso_clock")
> Signed-off-by: Thomas Weißschuh <thomas.weissschuh@xxxxxxxxxxxxx>

Reviewed-by: Nam Cao <namcao@xxxxxxxxxxxxx>