[Y2038] [PATCH] drm/exynos: g2d: Replace struct timeval usage

Arnd Bergmann arnd at arndb.de
Mon Jun 1 12:27:42 PDT 2015


On Monday 01 June 2015 08:36:18 Tina Ruchandani wrote:
> -       do_gettimeofday(&now);
> +       getnstimeofday64(&now);
>         e->event.tv_sec = now.tv_sec;
> -       e->event.tv_usec = now.tv_usec;
> +       e->event.tv_usec = (now.tv_nsec / NSEC_PER_USEC);
>         e->event.cmdlist_no = cmdlist_no;
> 

This has the same problem as the ipp patch: e->event.tv_sec is
a 32-bit variable, so this will still overflow, and the patch
has no effect.

	Arnd



More information about the linux-arm-kernel mailing list