commands/hdparm: Add missing grub_disk_close.

Found by: Coverity scan.
This commit is contained in:
Vladimir Serbinenko 2015-01-24 20:55:06 +01:00
parent 9d999852a2
commit 68cf24376c

View file

@ -329,6 +329,7 @@ grub_cmd_hdparm (grub_extcmd_context_t ctxt, int argc, char **args)
break;
}
default:
grub_disk_close (disk);
return grub_error (GRUB_ERR_IO, "not an ATA device");
}