summaryrefslogtreecommitdiffstats
path: root/.clang-format
diff options
context:
space:
mode:
authorZeng Heng <zengheng4@huawei.com>2022-11-21 10:00:29 +0800
committerBjorn Helgaas <bhelgaas@google.com>2022-11-21 16:55:18 -0600
commit2d9cd957d40c3ac491b358e7cff0515bb07a3a9c (patch)
tree144af1838c4e86482e5c94a3138594b65858cb1d /.clang-format
parent98b04dd0b4577894520493d96bc4623387767445 (diff)
downloadlinux-2d9cd957d40c3ac491b358e7cff0515bb07a3a9c.tar.bz2
PCI: Check for alloc failure in pci_request_irq()
When kvasprintf() fails to allocate memory, it returns a NULL pointer. Return error from pci_request_irq() so we don't dereference it. [bhelgaas: commit log] Fixes: 704e8953d3e9 ("PCI/irq: Add pci_request_irq() and pci_free_irq() helpers") Link: https://lore.kernel.org/r/20221121020029.3759444-1-zengheng4@huawei.com Signed-off-by: Zeng Heng <zengheng4@huawei.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com> Reviewed-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to '.clang-format')
0 files changed, 0 insertions, 0 deletions