s390/stp: clock_delta should be signed
authorSven Schnelle <svens@linux.ibm.com>
Tue, 3 May 2022 07:58:33 +0000 (09:58 +0200)
committerHeiko Carstens <hca@linux.ibm.com>
Wed, 11 May 2022 12:40:57 +0000 (14:40 +0200)
commit5ace65ebb5ce9fe1cc8fdbdd97079fb566ef0ea4
treef40939cdc8e4c16a646cef349c46e49bc5e219e4
parent03780c83c78546310c084ef3df69da2a0bafbcb5
s390/stp: clock_delta should be signed

clock_delta is declared as unsigned long in various places. However,
the clock sync delta can be negative. This would add a huge positive
offset in clock_sync_global where clock_delta is added to clk.eitod
which is a 72 bit integer. Declare it as signed long to fix this.

Cc: stable@vger.kernel.org
Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Heiko Carstens <hca@linux.ibm.com>
arch/s390/include/asm/cio.h
arch/s390/kernel/time.c
drivers/s390/cio/chsc.c