]> git.ipfire.org Git - thirdparty/linux.git/commit - ipc/msg.c
y2038: ipc: Use ktime_get_real_seconds consistently
authorArnd Bergmann <arnd@arndb.de>
Thu, 12 Apr 2018 13:19:44 +0000 (15:19 +0200)
committerArnd Bergmann <arnd@arndb.de>
Fri, 20 Apr 2018 14:20:18 +0000 (16:20 +0200)
commit2a70b7879b84d471fd0e440f027bba310e0c1fb7
treeffb63998dfdb5fdd2636874299c9785c1271ee71
parentb497ef570ecdeeaef4335ecc4f712cbaae0918a5
y2038: ipc: Use ktime_get_real_seconds consistently

In some places, we still used get_seconds() instead of
ktime_get_real_seconds(), and I'm changing the remaining ones now to
all use ktime_get_real_seconds() so we use the full available range for
timestamps instead of overflowing the 'unsigned long' return value in
year 2106 on 32-bit kernels.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
ipc/msg.c
ipc/sem.c