diff options
| author | Jan Kiszka <[email protected]> | 2018-06-19 21:52:42 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2018-06-19 21:52:42 +0000 |
| commit | 93c9a7f8793175fdad5c472af5af07f994116a04 (patch) | |
| tree | 28d0800c0409e70d83de96567f29250c9753ff79 /tools/perf/scripts/python/net_dropmonitor.py | |
| parent | Linux 4.18-rc1 (diff) | |
| download | kernel-93c9a7f8793175fdad5c472af5af07f994116a04.tar.gz kernel-93c9a7f8793175fdad5c472af5af07f994116a04.zip | |
PCI: Clean up resource allocation in devm_of_pci_get_host_bridge_resources()
Instead of first allocating and then freeing memory for struct resource in
case we cannot parse a PCI resource from the device tree, work against a
local struct and kmemdup() it when we decide to go with it.
Suggested-by: Andy Shevchenko <[email protected]>
Signed-off-by: Jan Kiszka <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Vladimir Zapolskiy <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/net_dropmonitor.py')
0 files changed, 0 insertions, 0 deletions
