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

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