2020-07-29 20:47:36 +08:00
|
|
|
From ca6d4093a87c9aa6059ad4e396a50ff485cc0066 Mon Sep 17 00:00:00 2001
|
2019-09-30 10:52:04 -04:00
|
|
|
From: linyanly <linyanly.lin@huawei.com>
|
|
|
|
|
Date: Fri, 3 Nov 2017 15:53:29 +0800
|
2020-07-29 20:47:36 +08:00
|
|
|
Subject: [PATCH 218/220] backport 'support TPM2.0 in grub2, both legacy and
|
|
|
|
|
efi'
|
2019-09-30 10:52:04 -04:00
|
|
|
|
|
|
|
|
---
|
2020-07-29 20:47:36 +08:00
|
|
|
grub-core/kern/emu/mm.c | 3 ++-
|
|
|
|
|
1 file changed, 2 insertions(+), 1 deletion(-)
|
2019-09-30 10:52:04 -04:00
|
|
|
|
|
|
|
|
diff --git a/grub-core/kern/emu/mm.c b/grub-core/kern/emu/mm.c
|
|
|
|
|
index f262e95..43b31fa 100644
|
|
|
|
|
--- a/grub-core/kern/emu/mm.c
|
|
|
|
|
+++ b/grub-core/kern/emu/mm.c
|
2020-07-29 20:47:36 +08:00
|
|
|
@@ -50,7 +50,8 @@ grub_zalloc (grub_size_t size)
|
2019-09-30 10:52:04 -04:00
|
|
|
void
|
|
|
|
|
grub_free (void *ptr)
|
|
|
|
|
{
|
|
|
|
|
- free (ptr);
|
|
|
|
|
+ if (ptr)
|
|
|
|
|
+ free (ptr);
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
void *
|
|
|
|
|
--
|
|
|
|
|
1.8.3.1
|
2020-07-29 20:47:36 +08:00
|
|
|
|