summaryrefslogtreecommitdiff
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorJan Kiszka <jan.kiszka@siemens.com>2018-06-20 00:52:42 +0300
committerBjorn Helgaas <bhelgaas@google.com>2018-06-20 00:52:42 +0300
commit93c9a7f8793175fdad5c472af5af07f994116a04 (patch)
tree28d0800c0409e70d83de96567f29250c9753ff79 /fs/jbd2/commit.c
parentce397d215ccd07b8ae3f71db689aedb85d56ab40 (diff)
downloadlinux-93c9a7f8793175fdad5c472af5af07f994116a04.tar.xz
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 <andy.shevchenko@gmail.com> Signed-off-by: Jan Kiszka <jan.kiszka@siemens.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Vladimir Zapolskiy <vladimir_zapolskiy@mentor.com>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions