]> git.ipfire.org Git - thirdparty/grub.git/commitdiff
gptsync: Add missing device_close.
authorVladimir Serbinenko <phcoder@gmail.com>
Sat, 24 Jan 2015 19:52:02 +0000 (20:52 +0100)
committerVladimir Serbinenko <phcoder@gmail.com>
Sat, 24 Jan 2015 19:52:02 +0000 (20:52 +0100)
Found by: Coverity scan

grub-core/commands/gptsync.c

index 16592e9bbe81a7a7bd21fbc246a93750033b4add..444e24874f146d3f6eaff61300be1dccb067deb1 100644 (file)
@@ -235,6 +235,8 @@ grub_cmd_gptsync (grub_command_t cmd __attribute__ ((unused)),
       return grub_errno;
     }
 
+  grub_device_close (dev);
+
   grub_printf_ (N_("New MBR is written to `%s'\n"), args[0]);
 
   return GRUB_ERR_NONE;