Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Skip to content
Commit 3e45cf5e authored by Grant Erickson's avatar Grant Erickson Committed by David Woodhouse
Browse files

mtd: mtdchar: retry large buffer allocations



Replace direct call to kmalloc for a potentially large, contiguous
buffer allocation with one to mtd_kmalloc_up_to which helps ensure the
operation can succeed under low-memory, highly- fragmented situations
albeit somewhat more slowly.

Signed-off-by: default avatarGrant Erickson <marathon96@gmail.com>
Tested-by: default avatarBen Gardiner <bengardiner@nanometrics.ca>
Tested-by: default avatarStefano Babic <sbabic@denx.de>
Signed-off-by: default avatarArtem Bityutskiy <Artem.Bityutskiy@nokia.com>
Signed-off-by: default avatarDavid Woodhouse <David.Woodhouse@intel.com>
parent 33b53716
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment