From: Michael Lawnick Date: Thu, 19 Mar 2009 09:06:41 +0000 (+0100) Subject: UBIFS: Missing offset relocation for compressor 'none' X-Git-Tag: v2009.06-rc1~148^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=faac4fd852e39cb1d7a740801b060e41aeacef1f;p=u-boot 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 Acked-by: Stefan Roese --- diff --git a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c index d917863884..32f9ff8ed4 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; }