These are both pretty trivial: fix a memory leak in the unlikely event sysfs_create_bin_file() fails, and simplify the code by returning allocation error immediately, which unindents the mainline code. These are on my pci/resource branch, and I intend them for v4.6. --- Bjorn Helgaas (2): PCI: Don't leak memory if sysfs_create_bin_file() fails PCI: Simplify pci_create_attr() control flow drivers/pci/pci-sysfs.c | 51 +++++++++++++++++++++++++---------------------- 1 file changed, 27 insertions(+), 24 deletions(-) -- To unsubscribe from this list: send the line "unsubscribe linux-pci" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html