mirror of
https://git.savannah.gnu.org/git/grub.git
synced 2026-10-21 06:49:35 +00:00
* grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
This commit is contained in:
1 parent
28153eb87a
commit
7152393503
2 files changed
+9
-2
No files matched your search
@@ -1,3 +1,7 @@
|
||||
2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/fs/zfs/zfs.c (check_pool_label): Fix memory leak.
|
||||
|
||||
2013-10-20 Vladimir Serbinenko <phcoder@gmail.com>
|
||||
|
||||
* grub-core/net/arp.c: Remove variable length arrays.
|
||||
|
||||
@@ -989,8 +989,11 @@ check_pool_label (struct grub_zfs_data *data,
|
||||
== ZEC_MAGIC)
|
||||
endian = GRUB_ZFS_BIG_ENDIAN;
|
||||
else
|
||||
return grub_error (GRUB_ERR_BAD_FS,
|
||||
"bad vdev_phys_t.vp_zbt.zec_magic number");
|
||||
{
|
||||
grub_free (nvlist);
|
||||
return grub_error (GRUB_ERR_BAD_FS,
|
||||
"bad vdev_phys_t.vp_zbt.zec_magic number");
|
||||
}
|
||||
/* Now check the integrity of the vdev_phys_t structure though checksum. */
|
||||
ZIO_SET_CHECKSUM(&emptycksum, diskdesc->vdev_phys_sector << 9, 0, 0, 0);
|
||||
err = zio_checksum_verify (emptycksum, ZIO_CHECKSUM_LABEL, endian,
|
||||
|
||||
Reference in new issue
Block a user