udev: don't call fclose on NULL in is_pci_multifunction
bootchart: check return of fopen before setvbuf in log.c