From: Michael Buesch Date: Mon, 23 Nov 2009 19:58:06 +0000 (+0100) Subject: ssb: Fix range check in sprom write X-Git-Tag: v2.6.27.42~12 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d66f16e8a63d1f2198bc2cd8e6bd91b5378fca20;p=pandora-kernel.git ssb: Fix range check in sprom write commit e33761e6f23881de9f3ee77cc2204ab2e26f3d9a upstream. The range check in the sprom image parser hex2sprom() is broken. One sprom word is 4 hex characters. This fixes the check and also adds much better sanity checks to the code. We better make sure the image is OK by doing some sanity checks to avoid bricking the device by accident. Signed-off-by: Michael Buesch Signed-off-by: John W. Linville Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed