diff options
author | Russell King <[email protected]> | 2015-10-03 19:13:02 +0100 |
---|---|---|
committer | Bjorn Helgaas <[email protected]> | 2015-10-09 11:20:23 -0500 |
commit | 37bfa771cda1734454e4304050cfddbcda5f16ed (patch) | |
tree | f736c99b0145684331f1a1a8cbea2f1dc861b895 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 49cb1f718360f86075341e35fad57748a5c182f9 (diff) |
PCI: mvebu: Fix memory leaks and refcount leaks
The mvebu PCI port parsing is weak due to:
1) allocations via kasprintf() were not cleaned up when we encounter an
error or decide to skip the port.
2) kasprintf() wasn't checked for failure.
3) of_get_named_gpio_flags() returns EPROBE_DEFER if the GPIO is not
present, not devm_gpio_request_one().
4) the of_node was not being put when terminating the loop.
Fix these oversights.
Tested-by: Willy Tarreau <[email protected]> (Iomega iConnect Kirkwood, MiraBox Armada 370)
Tested-by: Andrew Lunn <[email protected]> (D-Link DIR664 Kirkwood)
Tested-by: Thomas Petazzoni <[email protected]> (Armada XP GP)
Signed-off-by: Russell King <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Thomas Petazzoni <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions