[flashrom] [PATCHv2] Return error if malloc fail for undo_pci_write