[PATCH 0/2] PCI: Clean up pci_create_attr()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



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



[Index of Archives]     [DMA Engine]     [Linux Coverity]     [Linux USB]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Greybus]

  Powered by Linux