[PATCH v2] part: return -ENOSYS when get_info not valid.

Simon Glass sjg at chromium.org
Sun Oct 24 21:53:50 CEST 2021


On Wed, 20 Oct 2021 at 06:16, schspa <schspa at gmail.com> wrote:
>
> In some case, get_info() interface can be NULL, add this check to stop
> from crash.
>
> Signed-off-by: schspa <schspa at gmail.com>
> ---
>  disk/part.c | 7 +++++++
>  1 file changed, 7 insertions(+)
>

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list