From: Heiko Carstens Date: Mon, 6 May 2013 14:26:01 +0000 (+0200) Subject: s390/disassembler: prevent endless loop in print_fn_code() X-Git-Tag: v3.10-rc3~36^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=7678dcfb310a190aea9bee8cdeb1e14987600737;p=pandora-kernel.git s390/disassembler: prevent endless loop in print_fn_code() If the size of the opcode to be printed is larger than "len" we'll see an overflow of an unsigned long value, which means that the while loop within print_fn_code() will loop quite a long time until there is the next chance for an exit. So add an early exit check. Reported-by: Christian Ehrhardt Signed-off-by: Heiko Carstens Signed-off-by: Martin Schwidefsky --- Reading git-diff-tree failed