Skip to content
Snippets Groups Projects
Commit cf8bc577 authored by Wolfgang Denk's avatar Wolfgang Denk
Browse files

Fix problem with symbolic links in JFFS2 code.

parent a710d4be
Branches
Tags
No related merge requests found
...@@ -2,6 +2,8 @@ ...@@ -2,6 +2,8 @@
Changes for U-Boot 1.1.3: Changes for U-Boot 1.1.3:
====================================================================== ======================================================================
* Fix problem with symbolic links in JFFS2 code.
* Use linker ASSERT statement to prevent undetected overlapping of * Use linker ASSERT statement to prevent undetected overlapping of
sections on PPChameleon board; other boards might use this, too. sections on PPChameleon board; other boards might use this, too.
......
...@@ -760,6 +760,10 @@ jffs2_1pass_list_inodes(struct b_lists * pL, u32 pino) ...@@ -760,6 +760,10 @@ jffs2_1pass_list_inodes(struct b_lists * pL, u32 pino)
if (jNode->ino == jDir->ino && jNode->version >= i_version) { if (jNode->ino == jDir->ino && jNode->version >= i_version) {
if (i) if (i)
put_fl_mem(i); put_fl_mem(i);
if (jDir->type == DT_LNK)
i = get_node_mem(b2->offset);
else
i = get_fl_mem(b2->offset, sizeof(*i), NULL); i = get_fl_mem(b2->offset, sizeof(*i), NULL);
} }
b2 = b2->next; b2 = b2->next;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment