Skip to content
Snippets Groups Projects
Commit 9f158499 authored by Rafał Miłecki's avatar Rafał Miłecki
Browse files

nvram: fix "Segmentation fault" caused by setting memory out of buffer


Some MTD partitions with NVRAM have content starting in the middle. In
such case offset is set and nvram_header returns pointer to the middle.
It means we have to respect offset when calculating remaining space.

By the way use real MTD partition size (nvram_part_size variable) as we
may want to bump NVRAM_SPACE in the (very near) future.

Signed-off-by: default avatarRafał Miłecki <zajec5@gmail.com>

SVN-Revision: 46251
parent 08790c5e
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