From: Dan Carpenter Date: Thu, 3 Mar 2011 16:56:06 +0000 (+0100) Subject: keyboard: integer underflow bug X-Git-Tag: v2.6.37.4~28 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4a160e5fe42a7f670ae90890e1d26be72ec3751b;p=pandora-kernel.git keyboard: integer underflow bug commit b652277b09d3d030cb074cc6a98ba80b34244c03 upstream. The "ct" variable should be an unsigned int. Both struct kbdiacrs ->kb_cnt and struct kbd_data ->accent_table_size are unsigned ints. Making it signed causes a problem in KBDIACRUC because the user could set the signed bit and cause a buffer overflow. Signed-off-by: Dan Carpenter Signed-off-by: Martin Schwidefsky Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed