a5bd9f6
From e24e009bf730aaeef10783fca8ec04221a115713 Mon Sep 17 00:00:00 2001
a5bd9f6
From: Vladimir 'phcoder' Serbinenko <phcoder@gmail.com>
a5bd9f6
Date: Mon, 4 Feb 2013 15:36:03 +0100
a5bd9f6
Subject: [PATCH 151/364] 	* grub-core/disk/cryptodisk.c
a5bd9f6
 (grub_cryptodisk_scan_device): Don't stop 	on first error.
a5bd9f6
a5bd9f6
---
a5bd9f6
 ChangeLog                   | 5 +++++
a5bd9f6
 grub-core/disk/cryptodisk.c | 5 ++++-
a5bd9f6
 2 files changed, 9 insertions(+), 1 deletion(-)
a5bd9f6
a5bd9f6
diff --git a/ChangeLog b/ChangeLog
a5bd9f6
index f5396fe..0994ee7 100644
a5bd9f6
--- a/ChangeLog
a5bd9f6
+++ b/ChangeLog
a5bd9f6
@@ -1,3 +1,8 @@
a5bd9f6
+2013-02-04  Vladimir Serbinenko  <phcoder@gmail.com>
a5bd9f6
+
a5bd9f6
+	* grub-core/disk/cryptodisk.c (grub_cryptodisk_scan_device): Don't stop
a5bd9f6
+	on first error.
a5bd9f6
+
a5bd9f6
 2013-02-01  Vladimir Serbinenko  <phcoder@gmail.com>
a5bd9f6
 
a5bd9f6
 	* grub-core/fs/fshelp.c (find_file): Set oldnode to zero after
a5bd9f6
diff --git a/grub-core/disk/cryptodisk.c b/grub-core/disk/cryptodisk.c
a5bd9f6
index ce755c3..f39c1ab 100644
a5bd9f6
--- a/grub-core/disk/cryptodisk.c
a5bd9f6
+++ b/grub-core/disk/cryptodisk.c
a5bd9f6
@@ -875,7 +875,10 @@ grub_cryptodisk_scan_device (const char *name,
a5bd9f6
   /* Try to open disk.  */
a5bd9f6
   source = grub_disk_open (name);
a5bd9f6
   if (!source)
a5bd9f6
-    return grub_errno;
a5bd9f6
+    {
a5bd9f6
+      grub_print_error ();
a5bd9f6
+      return 0;
a5bd9f6
+    }
a5bd9f6
 
a5bd9f6
   err = grub_cryptodisk_scan_device_real (name, source);
a5bd9f6
 
a5bd9f6
-- 
a5bd9f6
1.8.1.4
a5bd9f6