Skip to content
Commit b562ec8f authored by Bjorn Helgaas's avatar Bjorn Helgaas
Browse files

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: default avatarBjorn Helgaas <bhelgaas@google.com>
parent 9d88b93b
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment