ucimap: ucimap_parse: consider smap_offset when allocating the section data
authorLars-Peter Clausen <lars@metafoo.de>
Sat, 21 Aug 2010 00:51:48 +0000 (02:51 +0200)
committerFelix Fietkau <nbd@openwrt.org>
Sat, 21 Aug 2010 01:31:30 +0000 (03:31 +0200)
Currently when there is no custom section data allocator the ucimap_section_data
struct has to be at the beginning at the containing structure.
This patch gets rid of that restriction by taking smap_offset into account.

Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>

No differences found