mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-23 15:49:23 +00:00
* grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
with old reiserfs. (grub_reiserfs_open): Don't free root.
This commit is contained in:
1 parent
021d90ecac
commit
937d1c44b1
2 files changed
+9
-2
No files matched your search
@@ -1,3 +1,9 @@
|
|||||||
|
2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
|
* grub-core/fs/reiserfs.c (grub_reiserfs_iterate_dir): Fix size byteswap
|
||||||
|
with old reiserfs.
|
||||||
|
(grub_reiserfs_open): Don't free root.
|
||||||
|
|
||||||
2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
|
2012-05-22 Vladimir Serbinenko <phcoder@gmail.com>
|
||||||
|
|
||||||
* grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
|
* grub-core/fs/fshelp.c (grub_fshelp_find_file): Set currnode to 0
|
||||||
|
|||||||
@@ -884,7 +884,7 @@ grub_reiserfs_iterate_dir (grub_fshelp_node_t item,
|
|||||||
entry_type = GRUB_FSHELP_SYMLINK;
|
entry_type = GRUB_FSHELP_SYMLINK;
|
||||||
else
|
else
|
||||||
entry_type = GRUB_FSHELP_REG;
|
entry_type = GRUB_FSHELP_REG;
|
||||||
entry_item->size = (grub_off_t) grub_le_to_cpu64 (entry_v1_stat.size);
|
entry_item->size = (grub_off_t) grub_le_to_cpu32 (entry_v1_stat.size);
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
@@ -1028,7 +1028,8 @@ grub_reiserfs_open (struct grub_file *file, const char *name)
|
|||||||
|
|
||||||
fail:
|
fail:
|
||||||
assert (grub_errno != GRUB_ERR_NONE);
|
assert (grub_errno != GRUB_ERR_NONE);
|
||||||
grub_free (found);
|
if (found != &root)
|
||||||
|
grub_free (found);
|
||||||
grub_free (data);
|
grub_free (data);
|
||||||
grub_dl_unref (my_mod);
|
grub_dl_unref (my_mod);
|
||||||
return grub_errno;
|
return grub_errno;
|
||||||
|
|||||||
Reference in new issue
Block a user