mirror of
https://git.proxmox.com/git/grub2
synced 2025-10-04 20:26:38 +00:00
commands/hdparm: Add missing grub_disk_close.
Found by: Coverity scan.
This commit is contained in:
parent
9d999852a2
commit
68cf24376c
@ -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");
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user