dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

Blame SOURCES/0160-efinet-cannot-free-const-char-pointer.patch

28f7f8
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
ecb9bb
From: Andrei Borzenkov <arvidjaar@gmail.com>
ecb9bb
Date: Mon, 4 May 2015 08:39:29 +0300
28f7f8
Subject: [PATCH] efinet: cannot free const char * pointer
ecb9bb
ecb9bb
---
ecb9bb
 grub-core/net/drivers/efi/efinet.c | 2 +-
ecb9bb
 1 file changed, 1 insertion(+), 1 deletion(-)
ecb9bb
ecb9bb
diff --git a/grub-core/net/drivers/efi/efinet.c b/grub-core/net/drivers/efi/efinet.c
28f7f8
index 810adf38fe6..bb863e65a38 100644
ecb9bb
--- a/grub-core/net/drivers/efi/efinet.c
ecb9bb
+++ b/grub-core/net/drivers/efi/efinet.c
ecb9bb
@@ -298,7 +298,7 @@ GRUB_MOD_FINI(efinet)
ecb9bb
 	grub_net_card_unregister (card);
ecb9bb
 	grub_free (card->txbuf);
ecb9bb
 	grub_free (card->rcvbuf);
ecb9bb
-	grub_free (card->name);
ecb9bb
+	grub_free ((char *)card->name);
ecb9bb
 	grub_free (card);
ecb9bb
       }
ecb9bb
 }