aboutsummaryrefslogtreecommitdiff
path: root/fs/ubifs
diff options
context:
space:
mode:
authorMichael Lawnick <ml.lawnick@gmx.de>2009-03-19 10:06:41 +0100
committerWolfgang Denk <wd@denx.de>2009-03-20 22:39:15 +0100
commitfaac4fd852e39cb1d7a740801b060e41aeacef1f (patch)
tree1a2c83425fd46ef1bb3de595b6edfa07abf1de5b /fs/ubifs
parentce6d0c8de031f345bde745f3b855082adf1c4e45 (diff)
downloadu-boot-linaro-stable-faac4fd852e39cb1d7a740801b060e41aeacef1f.tar.gz
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>
Diffstat (limited to 'fs/ubifs')
-rw-r--r--fs/ubifs/ubifs.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c
index d91786388..32f9ff8ed 100644
--- a/fs/ubifs/ubifs.c
+++ b/fs/ubifs/ubifs.c
@@ -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;
}