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

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