[PATCH 4.14 290/338] PCI/sysfs: Fix double free in error path