From: Matthew Garrett Date: Fri, 6 Jun 2008 19:35:15 +0000 (-0700) Subject: isight_firmware: Avoid crash on loading invalid firmware X-Git-Tag: v2.6.26-rc6~8^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=62b5884875fcd4babf6c0c377046f226abbfe491;p=pandora-kernel.git isight_firmware: Avoid crash on loading invalid firmware Different tools generate slightly different formats of the isight firmware. Ensure that the firmware buffer is not overrun, while still ensuring that the correct amount of data is written if trailing data is present. Signed-off-by: Matthew Garrett Report-by: Justin Mattock Tested-by: Justin Mattock Signed-off-by: Andrew Morton Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed