]> git.ipfire.org Git - thirdparty/grub.git/commit
util/grub-install: Fix NULL pointer dereferences
authorDaniel Kiper <daniel.kiper@oracle.com>
Thu, 25 Feb 2021 17:35:01 +0000 (18:35 +0100)
committerDaniel Kiper <daniel.kiper@oracle.com>
Tue, 2 Mar 2021 14:54:17 +0000 (15:54 +0100)
commit8b3a95655b4391122e7b0315d8cc6f876caf8183
tree146b0eb57b6af5e991b334b4d1a9f68a2983c95c
parent7c8a2b5d1421a0f2a33d33531f7561f3da93b844
util/grub-install: Fix NULL pointer dereferences

Two grub_device_open() calls does not have associated NULL checks
for returned values. Fix that and appease the Coverity.

Fixes: CID 314583
Signed-off-by: Daniel Kiper <daniel.kiper@oracle.com>
Reviewed-by: Javier Martinez Canillas <javierm@redhat.com>
util/grub-install.c