grub2/0394-efinet-cannot-free-const-char-pointer.patch
Peter Jones 8c6b1ac71e Reconcile with upstream once again.
Also include some minor fixes for gcc 5.1.1

Signed-off-by: Peter Jones <pjones@redhat.com>
2015-07-22 09:46:32 -04:00

26 lines
747 B
Diff

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