Re: [PATCH v3 09/22] posix-timers:Convert to the 64bit methods for the clock_settime syscall function

From: Thomas Gleixner
Date: Tue May 12 2015 - 10:51:44 EST


On Mon, 11 May 2015, Baolin Wang wrote:
> +static int default_clock_set64(const clockid_t which_clock,
> + const struct timespec64 *tp64)
> +{
> + struct k_clock *kc = clockid_to_kclock(which_clock);
> + struct timespec tp;
> +
> + kc->clock_set(which_clock, &tp);

So you set the clock from an unitialized variable.....

Thanks,

tglx
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/