efi_memory: avoid NULL dereference in efi_free_pool
authorxypron.glpk@gmx.de <xypron.glpk@gmx.de>
Fri, 14 Jul 2017 17:12:39 +0000 (19:12 +0200)
committerAlexander Graf <agraf@suse.de>
Wed, 19 Jul 2017 12:14:41 +0000 (14:14 +0200)
commit71275a3e985db60b53b381f5253fdb15c663e18e
tree43e94e7ee118aebb999f35c592eaa8587f983215
parent70bfcdc6bb6f969babd69efc49e1dc7a1faeca54
efi_memory: avoid NULL dereference in efi_free_pool

If efi_free_pool is called with argument NULL an illegal memory
access occurs.

So let's check the parameter on entry.

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