dcavalca / rpms / grub2

Forked from rpms/grub2 3 years ago
Clone

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

ecb9bb
From fe8c0ca495c7225682e2af47d0d77b4ad0077f34 Mon Sep 17 00:00:00 2001
ecb9bb
From: Andrei Borzenkov <arvidjaar@gmail.com>
ecb9bb
Date: Mon, 4 May 2015 08:39:29 +0300
ecb9bb
Subject: [PATCH 03/23] 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
ecb9bb
index 810adf3..bb863e6 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
 }
ecb9bb
-- 
ecb9bb
2.4.3
ecb9bb