Re: [PATCH] PCI/AER: potential dereference of null pointer

2021-12-13 Thread Bjorn Helgaas
On Mon, Dec 13, 2021 at 11:57:52AM -0800, Rajat Jain wrote: > Hello > > On Sat, Dec 11, 2021 at 9:54 AM Bjorn Helgaas wrote: > > > > [+cc Rajat, author of aer_stats: > > db89ccbe52c7 ("PCI/AER: Define aer_stats structure for AER capable devices" > > 81aa5206f9a7 ("PCI/AER: Add sysfs attributes to

Re: [PATCH] PCI/AER: potential dereference of null pointer

2021-12-11 Thread Bjorn Helgaas
[+cc Rajat, author of aer_stats: db89ccbe52c7 ("PCI/AER: Define aer_stats structure for AER capable devices" 81aa5206f9a7 ("PCI/AER: Add sysfs attributes to provide AER stats and breakdown"] On Thu, Dec 09, 2021 at 05:45:56PM +0800, Jiasheng Jiang wrote: > he return value of kzalloc() needs to be

[PATCH] PCI/AER: potential dereference of null pointer

2021-12-09 Thread Jiasheng Jiang
he return value of kzalloc() needs to be checked. To avoid use of null pointer in case of the failure of alloc. Fixes: db89ccbe52c7 ("PCI/AER: Define aer_stats structure for AER capable devices") Signed-off-by: Jiasheng Jiang --- drivers/pci/pcie/aer.c | 2 ++ 1 file changed, 2 insertions(+) d