[PATCH 4.14 054/205] firmware/efi: Add NULL pointer checks in efivars API functions