On Thu, Sep 11, 2025 at 05:54:57PM -0500, Bjorn Helgaas wrote: > [+cc Terry, Robert, CXL list, Smita, Dongdong] > > On Fri, Sep 05, 2025 at 02:25:27AM +0800, Vernon Yang wrote: > > From: Vernon Yang <yanglinch...@kylinos.cn> > > > > 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 <yanglinch...@kylinos.cn> > > Applied to pci/aer for v6.18, thanks, Vernon! > > Not directly related to this patch, but I'm concerned about some users > of dev->aer_cap.
pci_aer_init is called pretty early during boot. If we can't malloc a few hundred bytes at that point, the aer_cap users will be the least of your concerns. :)