Skip to content
Snippets Groups Projects
Commit 06a3241c authored by rmilecki's avatar rmilecki Committed by Rafał Miłecki
Browse files

mtd: seama: fix image data handling


1) Put sanity checks in one place
2) Respect provided offset
3) Read only as much data as needed for MD5 calculation

Thanks to the last change this is a great speedup and memory saver. On
devices with NAND flash we were allocating & reading about 128 MiB while
something about 8 MiB is enough.

Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>
parent 30edc328
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment