From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Lawnick Date: Thu, 19 Mar 2009 09:10:32 +0100 Subject: [U-Boot] [PATCH] UBIFS: Missing offset relocation for compressor 'none' Message-ID: <49C1FDF8.7010806@gmx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 --- fs/ubifs.c | 1 + 1 files changed, 1 insertions(+), 0 deletions(-) diff -Naur a/fs/ubifs/ubifs.c b/fs/ubifs/ubifs.c --- a/fs/ubifs/ubifs.c 2009-02-20 16:02:44.434443000 +0100 +++ b/fs/ubifs/ubifs.c 2009-03-18 16:06:09.000000000 +0100 @@ -147,7 +147,7 @@ int __init ubifs_compressors_init(void) if (err) return err; - ubifs_compressors[UBIFS_COMPR_NONE] = &none_compr; + ubifs_compressors[UBIFS_COMPR_NONE] = compr_init(&none_compr); return 0; } -- Kind regards, Michael