]> git.ipfire.org Git - people/ms/u-boot.git/commit - lib/efi_loader/efi_disk.c
efi_loader: efi_disk: check return value of calloc
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 26 Oct 2017 17:25:46 +0000 (19:25 +0200)
committerAlexander Graf <agraf@suse.de>
Fri, 1 Dec 2017 12:22:56 +0000 (13:22 +0100)
commit93945f2c65ff80290fc2af4f5c5d9bb52ff9ffa5
treec81220ba2eb5bd329f868a6719e884bf8be59f1b
parent753edb131a856267ca06598be0697163dbe58a49
efi_loader: efi_disk: check return value of calloc

Calloc may return NULL. We should check the return value.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Signed-off-by: Alexander Graf <agraf@suse.de>
lib/efi_loader/efi_disk.c