]> git.ipfire.org Git - thirdparty/grub.git/commit
zfsinfo: Correct a check for error allocating memory
authorDarren Kenny <darren.kenny@oracle.com>
Thu, 26 Nov 2020 10:56:45 +0000 (10:56 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 14:54:16 +0000 (15:54 +0100)
commit7aab03418ec6a9b991aa44416cb2585aff4e7972
tree07b028ec3959b2af48dd92ed8df5d3c0ed6a0b91
parent302c12ff5714bc455949117c1c9548ccb324d55b
zfsinfo: Correct a check for error allocating memory

While arguably the check for grub_errno is correct, we should really be
checking the return value from the function since it is always possible
that grub_errno was set elsewhere, making this code behave incorrectly.

Fixes: CID 73668
Signed-off-by: Darren Kenny <darren.kenny@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/fs/zfs/zfsinfo.c