]> git.ipfire.org Git - thirdparty/grub.git/commit
kern: Check for NULL when closing devices and disks
authorOliver Steffen <osteffen@redhat.com>
Fri, 26 May 2023 11:35:50 +0000 (13:35 +0200)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 1 Jun 2023 09:45:00 +0000 (11:45 +0200)
commitd09387287b7bbd7770bc9d172cc0e06181183e02
tree11c811c15a3634a17ee470fdcbee26b646526a32
parent33afcd187fb3971355b75f445df67d6ea3e064f1
kern: Check for NULL when closing devices and disks

Add checks for NULL pointers to grub_device_close() and
grub_disk_close() to make these functions more robust.

Signed-off-by: Oliver Steffen <osteffen@redhat.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/device.c
grub-core/kern/disk.c