efi_loader: correct efi_disk_register
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 9 Feb 2018 19:55:47 +0000 (20:55 +0100)
committerAlexander Graf <agraf@suse.de>
Fri, 9 Feb 2018 23:25:49 +0000 (00:25 +0100)
commitdf9cf561b04dd3fc5a94f7a2c2500948ae8ba56b
treeb618c5d4b0573783591e61f2e16234c6846f016d
parent0c2307431e6ea3deb916ba1622046299df077ced
efi_loader: correct efi_disk_register

efi_disk_register should return as status code (efi_status_t).

Disks with zero blocks should be reported as 'not ready' without throwing
an error.

This patch solves a problem running OpenBSD on system configured with
CONFIG_BLK=n (e.g. i.MX6).

Reported-by: Jonathan Gray <jsg@jsg.id.au>
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Tested-by: Jonathan Gray <jsg@jsg.id.au>
Signed-off-by: Alexander Graf <agraf@suse.de>
include/efi_loader.h
lib/efi_loader/efi_disk.c