]> git.ipfire.org Git - thirdparty/grub.git/commit
kern/buffer: Handle NULL input pointer in grub_buffer_free()
authorJagannathan Raman <jag.raman@oracle.com>
Mon, 17 Oct 2022 14:04:39 +0000 (14:04 +0000)
committerDaniel Kiper <daniel.kiper@oracle.com>
Thu, 27 Oct 2022 14:51:21 +0000 (16:51 +0200)
commit82ff9faa5bff5b3669bc4144bfc9b2279d344483
tree028e2d409859a3933fee37c4247ab1608ae2aa69
parent306be1f813a47ef9c198a677b7353430522c5d70
kern/buffer: Handle NULL input pointer in grub_buffer_free()

The grub_buffer_free() should handle NULL input pointer, similar to
grub_free(). If the pointer is not referencing any memory location,
grub_buffer_free() need not perform any function.

Fixes: CID 396931
Signed-off-by: Jagannathan Raman <jag.raman@oracle.com>
Reviewed-by: Ross Philipson <ross.philipson@oracle.com>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
grub-core/kern/buffer.c