Skip to content
Commit 62b58848 authored by Matthew Garrett's avatar Matthew Garrett Committed by Greg Kroah-Hartman
Browse files

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: default avatarMatthew Garrett <mjg@redhat.com>
Report-by: default avatarJustin Mattock <justinmattock@gmail.com>
Tested-by: default avatarJustin Mattock <justinmattock@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 6460a261
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment