diff options
author | Dongdong Liu <liudongdong3@huawei.com> | 2020-01-23 16:26:31 +0800 |
---|---|---|
committer | Bjorn Helgaas <bhelgaas@google.com> | 2020-01-23 16:40:03 -0600 |
commit | d95f20c4f07020ebc605f3b46af4b6db9eb5fc99 (patch) | |
tree | 44e82d11278e6fb72ffa8ff018984e39bf7d0519 /drivers/usb/cdns3/cdns3-ti.c | |
parent | 8d077c3ce0109c406c265cafc334258caee47e6d (diff) |
PCI/AER: Initialize aer_fifo
Previously we did not call INIT_KFIFO() for aer_fifo. This leads to
kfifo_put() sometimes returning 0 (queue full) when in fact it is not.
It is easy to reproduce the problem by using aer-inject:
$ aer-inject -s :82:00.0 multiple-corr-nonfatal
The content of the multiple-corr-nonfatal file is as below:
AER
COR RCVR
HL 0 1 2 3
AER
UNCOR POISON_TLP
HL 4 5 6 7
Fixes: 27c1ce8bbed7 ("PCI/AER: Use kfifo for tracking events instead of reimplementing it")
Link: https://lore.kernel.org/r/1579767991-103898-1-git-send-email-liudongdong3@huawei.com
Signed-off-by: Dongdong Liu <liudongdong3@huawei.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Diffstat (limited to 'drivers/usb/cdns3/cdns3-ti.c')
0 files changed, 0 insertions, 0 deletions