efidp_format_device_path: add enough input argument checking to avoid coredump
efidp_format_device_path: add enough input argument checking to avoid coredump

rhinstaller/efivar,vathpela/efivar-devel,rhboot/efivar,rhinstaller/efivar,rhboot/efivar