From: Michael Lawnick <ml.lawnick@gmx.de>
To: u-boot@lists.denx.de
Subject: [U-Boot] [PATCH] UBIFS: Missing offset relocation for compressor 'none'
Date: Thu, 19 Mar 2009 09:10:32 +0100 [thread overview]
Message-ID: <49C1FDF8.7010806@gmx.de> (raw)
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>
---
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
next reply other threads:[~2009-03-19 8:10 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-19 8:10 Michael Lawnick [this message]
2009-03-19 8:43 ` [U-Boot] [PATCH] UBIFS: Missing offset relocation for compressor 'none' Michael Lawnick
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=49C1FDF8.7010806@gmx.de \
--to=ml.lawnick@gmx.de \
--cc=u-boot@lists.denx.de \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.