]> www.infradead.org Git - users/jedix/linux-maple.git/commit
s390/ebcdic: Fix length decrement in codepage_convert()
authorSven Schnelle <svens@linux.ibm.com>
Wed, 8 Jan 2025 14:27:06 +0000 (15:27 +0100)
committerAlexander Gordeev <agordeev@linux.ibm.com>
Mon, 13 Jan 2025 08:50:18 +0000 (09:50 +0100)
commit061a5e4ac36dac35bb4dfd6a6054c5657b953881
treeeedcb7220d31c0146bfe2acb68ab14e905f9fc92
parent4a0f62a3009be6515f5863970994a350a938ac52
s390/ebcdic: Fix length decrement in codepage_convert()

The inline assembly uses the ahi instruction to decrement and test
whether more than 256 bytes are left for conversion. But the nr
variable passed is of type unsigned long. Therefore use aghi.

Signed-off-by: Sven Schnelle <svens@linux.ibm.com>
Reported-by: Jens Remus <jremus@linux.ibm.com>
Reviewed-by: Heiko Carstens <hca@linux.ibm.com>
Signed-off-by: Alexander Gordeev <agordeev@linux.ibm.com>
arch/s390/include/asm/ebcdic.h