[PATCH 14/14] smbios: Correct error handling when writing tables