aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/pci/pci-sysfs.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/pci/pci-sysfs.c')
-rw-r--r--drivers/pci/pci-sysfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c
index 8ecaac983923..cf2b3654b4a8 100644
--- a/drivers/pci/pci-sysfs.c
+++ b/drivers/pci/pci-sysfs.c
@@ -1087,7 +1087,7 @@ static int pci_create_capabilities_sysfs(struct pci_dev *dev)
1087 attr->write = write_vpd_attr; 1087 attr->write = write_vpd_attr;
1088 retval = sysfs_create_bin_file(&dev->dev.kobj, attr); 1088 retval = sysfs_create_bin_file(&dev->dev.kobj, attr);
1089 if (retval) { 1089 if (retval) {
1090 kfree(dev->vpd->attr); 1090 kfree(attr);
1091 return retval; 1091 return retval;
1092 } 1092 }
1093 dev->vpd->attr = attr; 1093 dev->vpd->attr = attr;