mirror of
https://git.codelinaro.org/clo/qsdk/oss/boot/u-boot-2016.git
synced 2026-03-01 17:36:03 +01:00
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: Michael Lawnick <ml.lawnick@gmx.de> Acked-by: Stefan Roese <sr@denx.de>
This commit is contained in:
parent
ce6d0c8de0
commit
faac4fd852
1 changed files with 4 additions and 1 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue