commit | b562ec8f74e4edb532a53d26f0002d6fb4a6c79b | [log] [tgz] |
---|---|---|
author | Bjorn Helgaas <bhelgaas@google.com> | Thu Mar 10 14:36:28 2016 -0600 |
committer | Bjorn Helgaas <bhelgaas@google.com> | Sat Mar 12 06:00:29 2016 -0600 |
tree | 937dc632aa3aff0e824cd6575698ef7418ae47da | |
parent | 9d88b93bea5937c0c5c5fc30089d4e6e3c9ca508 [diff] |
PCI: Don't leak memory if sysfs_create_bin_file() fails If sysfs_create_bin_file() fails, pci_create_attr() leaks the struct bin_attribute it allocated previously. Free the struct bin_attribute if pci_create_attr() fails. Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>