diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2016-05-09 12:54:53 +0000 |
---|---|---|
committer | Luka Perkov <luka@openwrt.org> | 2016-06-19 19:56:13 +0200 |
commit | 1508cf8713d82c5269b98b749cac2fac1a34bc50 (patch) | |
tree | 4a52a89d24638b32ff071ef0be8125122fcbf84c /package/libs/libnl-tiny | |
parent | f9e8c4c3ccf15243d860670c22d3b271cd1bcac2 (diff) | |
download | upstream-1508cf8713d82c5269b98b749cac2fac1a34bc50.tar.gz upstream-1508cf8713d82c5269b98b749cac2fac1a34bc50.tar.bz2 upstream-1508cf8713d82c5269b98b749cac2fac1a34bc50.zip |
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: Rafał Miłecki <zajec5@gmail.com>
Backport of r49309
git-svn-id: svn://svn.openwrt.org/openwrt/branches/chaos_calmer@49313 3c298f89-4303-0410-b956-a3cf2f4a3e73
Diffstat (limited to 'package/libs/libnl-tiny')
0 files changed, 0 insertions, 0 deletions