From: Andy Walls Date: Sun, 5 Jul 2009 19:22:45 +0000 (-0300) Subject: V4L/DVB (12206): get_dvb_firmware: Correct errors in MPC718 firmware extraction logic X-Git-Tag: v2.6.31-rc3~74^2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=0a6843483c256c859cd9542361812a29403f0fb5;p=pandora-kernel.git V4L/DVB (12206): get_dvb_firmware: Correct errors in MPC718 firmware extraction logic The extraction routine for the MPC718 "firmware" had 2 bugs in it, where one bug masked the effect of the other. The loop iteration should have set $prevlen = $currlen at the end of the loop, and the if() check should have used && instead of || for deciding if the firmware length is reasonable. Signed-off-by: Andy Walls Signed-off-by: Mauro Carvalho Chehab --- Reading git-diff-tree failed