]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2640763348b325956d24ee9f5c02a2bec26de84b
treef40939cdc8e4c16a646cef349c46e49bc5e219e4
parent6d2df5b261f2188abdfa1bbba5815a4e2be6f37f
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