diff options
Diffstat (limited to 'drivers/pci/pci-sysfs.c')
-rw-r--r-- | drivers/pci/pci-sysfs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/pci/pci-sysfs.c b/drivers/pci/pci-sysfs.c index ea25e5bfcf23..c85438a367d5 100644 --- a/drivers/pci/pci-sysfs.c +++ b/drivers/pci/pci-sysfs.c | |||
@@ -1088,7 +1088,7 @@ static int pci_create_capabilities_sysfs(struct pci_dev *dev) | |||
1088 | attr->write = write_vpd_attr; | 1088 | attr->write = write_vpd_attr; |
1089 | retval = sysfs_create_bin_file(&dev->dev.kobj, attr); | 1089 | retval = sysfs_create_bin_file(&dev->dev.kobj, attr); |
1090 | if (retval) { | 1090 | if (retval) { |
1091 | kfree(dev->vpd->attr); | 1091 | kfree(attr); |
1092 | return retval; | 1092 | return retval; |
1093 | } | 1093 | } |
1094 | dev->vpd->attr = attr; | 1094 | dev->vpd->attr = attr; |