]> Gentwo Git Trees - linux/.git/commit
PCI/AER: Fix NULL pointer access by aer_info
authorVernon Yang <yanglincheng@kylinos.cn>
Thu, 4 Sep 2025 18:25:27 +0000 (02:25 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 11 Sep 2025 22:55:33 +0000 (17:55 -0500)
commit0a27bdb14b028fed30a10cec2f945c38cb5ca4fa
tree23d5897cdb6d828af8d76b64e83dccd8aec02485
parentc8ab5e888bb6721e6e084881e6e24ef2678832c3
PCI/AER: Fix NULL pointer access by aer_info

The kzalloc(GFP_KERNEL) may return NULL, so all accesses to aer_info->xxx
will result in kernel panic. Fix it.

Signed-off-by: Vernon Yang <yanglincheng@kylinos.cn>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Link: https://patch.msgid.link/20250904182527.67371-1-vernon2gm@gmail.com
drivers/pci/pcie/aer.c