From: Dan Carpenter Date: Fri, 18 May 2012 07:36:47 +0000 (+0300) Subject: NFC: potential integer overflow problem in check_crc() X-Git-Tag: v3.5-rc1~35^2~3^2~10 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=885ba1da689299ec52e646ca1a2429b8de55f364;p=pandora-kernel.git NFC: potential integer overflow problem in check_crc() If "buf[0]" is 255 then "len" gets set to 0. The call to "crc_ccitt(0xffff, buf, len - 2);" casts the "len - 2" to a high positive number which is ugly. Signed-off-by: Dan Carpenter Signed-off-by: John W. Linville --- Reading git-diff-tree failed