efi_loader: add checking for incorrect use of EFI_ENTRY/EXIT
authorRob Clark <robdclark@gmail.com>
Thu, 27 Jul 2017 12:04:18 +0000 (08:04 -0400)
committerAlexander Graf <agraf@suse.de>
Fri, 28 Jul 2017 22:18:24 +0000 (00:18 +0200)
commitc160d2f5ec9298d545a6e0fab0a68cc1a3e93759
treeddbb91e5b9e4a631619dca4b32542d425c9c56d1
parenta095aadffa96f3814d5605792674a6d64951db51
efi_loader: add checking for incorrect use of EFI_ENTRY/EXIT

Missing an EFI_ENTRY() or doubling up EFI_EXIT() leads to non-obvious
crashes.  Let's add some error checking.

Signed-off-by: Rob Clark <robdclark@gmail.com>
[agraf: fix bogus assert() and fix app_gd breakage]
Signed-off-by: Alexander Graf <agraf@suse.de>
include/efi_loader.h
lib/efi_loader/efi_boottime.c