Blame SOURCES/0081-grub-core-commands-verify.c-grub_pubkey_open-Fix-mem.patch

a85e8e
From 650ec2a7667e0a06ab4af1030d1a4e3832ac48c6 Mon Sep 17 00:00:00 2001
a85e8e
From: Vladimir Serbinenko <phcoder@gmail.com>
a85e8e
Date: Mon, 12 May 2014 10:01:48 +0200
a85e8e
Subject: [PATCH 081/260] * grub-core/commands/verify.c (grub_pubkey_open): Fix
a85e8e
 memdisk check.
a85e8e
a85e8e
---
a85e8e
 ChangeLog                   | 5 +++++
a85e8e
 grub-core/commands/verify.c | 2 +-
a85e8e
 2 files changed, 6 insertions(+), 1 deletion(-)
a85e8e
a85e8e
diff --git a/ChangeLog b/ChangeLog
a85e8e
index 3b61c0a99..d0896d89e 100644
a85e8e
--- a/ChangeLog
a85e8e
+++ b/ChangeLog
a85e8e
@@ -1,3 +1,8 @@
a85e8e
+2014-06-21  Vladimir Serbinenko  <phcoder@gmail.com>
a85e8e
+
a85e8e
+	* grub-core/commands/verify.c (grub_pubkey_open): Fix memdisk
a85e8e
+	check.
a85e8e
+
a85e8e
 2014-04-20  Vladimir Serbinenko  <phcoder@gmail.com>
a85e8e
 
a85e8e
 	* grub-core/kern/misc.c (__bzero): Don't compile in GRUB_UTIL.
a85e8e
diff --git a/grub-core/commands/verify.c b/grub-core/commands/verify.c
a85e8e
index a9dfd8852..6349ccfba 100644
a85e8e
--- a/grub-core/commands/verify.c
a85e8e
+++ b/grub-core/commands/verify.c
a85e8e
@@ -835,7 +835,7 @@ grub_pubkey_open (grub_file_t io, const char *filename)
a85e8e
 
a85e8e
   if (!sec)
a85e8e
     return io;
a85e8e
-  if (io->device->disk && io->device->disk->id == GRUB_DISK_DEVICE_MEMDISK_ID)
a85e8e
+  if (io->device->disk && io->device->disk->dev->id == GRUB_DISK_DEVICE_MEMDISK_ID)
a85e8e
     return io;
a85e8e
   fsuf = grub_malloc (grub_strlen (filename) + sizeof (".sig"));
a85e8e
   if (!fsuf)
a85e8e
-- 
a85e8e
2.13.0
a85e8e