Skip to content
Snippets Groups Projects
Commit faac4fd8 authored by Michael Lawnick's avatar Michael Lawnick Committed by Wolfgang Denk
Browse files

UBIFS: Missing offset relocation for compressor 'none'


On systems where U-Boot is linked to another address than it really lays
(e.g. backup image), calls via function pointers must be fixed with a
'+= gd->reloc_off'.
This was not done for none_compr in ubifs_compressors_init() what leads
to system crash on ubifsmount command.

Signed-off-by: default avatarMichael Lawnick <ml.lawnick@gmx.de>
Acked-by: default avatarStefan Roese <sr@denx.de>
parent ce6d0c8d
No related branches found
No related tags found
No related merge requests found
......@@ -147,7 +147,10 @@ int __init ubifs_compressors_init(void)
if (err)
return err;
ubifs_compressors[UBIFS_COMPR_NONE] = &none_compr;
err = compr_init(&none_compr);
if (err)
return err;
return 0;
}
......
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