From: Luis R. Rodriguez Date: Tue, 12 May 2015 21:49:41 +0000 (-0700) Subject: firmware: check for file truncation on direct firmware loading X-Git-Tag: omap-for-v4.2/fixes-rc1^2~93^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1ba4de17e0cb9cc3e03ce5b1fafebdd01c48c1f2;p=pandora-kernel.git firmware: check for file truncation on direct firmware loading When direct firmware loading is used we iterate over a list of possible firmware paths and concatenate the desired firmware name with each path and look for the file there. Should the passed firmware name be too long we end up truncating the file we want to look for, the search however is still done. Add a check for truncation instead of looking for a truncated firmware filename. Cc: Linus Torvalds Cc: Ming Lei Cc: Rusty Russell Cc: David Howells Cc: Kyle McMartin Signed-off-by: Luis R. Rodriguez Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed