diff options
author | Luis R. Rodriguez <[email protected]> | 2015-05-12 14:49:41 -0700 |
---|---|---|
committer | Greg Kroah-Hartman <[email protected]> | 2015-05-24 12:36:34 -0700 |
commit | 1ba4de17e0cb9cc3e03ce5b1fafebdd01c48c1f2 (patch) | |
tree | da801efb3c2e146afbba27de9eb59274b3836b8b /lib/memory-notifier-error-inject.c | |
parent | f5727b05d221796baf69667ed5c891d4bd53711e (diff) |
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 <[email protected]>
Cc: Ming Lei <[email protected]>
Cc: Rusty Russell <[email protected]>
Cc: David Howells <[email protected]>
Cc: Kyle McMartin <[email protected]>
Signed-off-by: Luis R. Rodriguez <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'lib/memory-notifier-error-inject.c')
0 files changed, 0 insertions, 0 deletions