android_kernel_xiaomi_sm8450/drivers/misc
Damien Le Moal 8e3c777640 misc: pci_endpoint_test: Re-init completion for every test
commit fb620ae73b70c2f57b9d3e911fc24c024ba2324f upstream.

The irq_raised completion used to detect the end of a test case is
initialized when the test device is probed, but never reinitialized again
before a test case. As a result, the irq_raised completion synchronization
is effective only for the first ioctl test case executed. Any subsequent
call to wait_for_completion() by another ioctl() call will immediately
return, potentially too early, leading to false positive failures.

Fix this by reinitializing the irq_raised completion before starting a new
ioctl() test command.

Link: https://lore.kernel.org/r/20230415023542.77601-16-dlemoal@kernel.org
Fixes: 2c156ac71c ("misc: Add host side PCI driver for PCI test function device")
Signed-off-by: Damien Le Moal <dlemoal@kernel.org>
Signed-off-by: Lorenzo Pieralisi <lpieralisi@kernel.org>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Manivannan Sadhasivam <mani@kernel.org>
Cc: stable@vger.kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2023-07-27 08:44:29 +02:00
..
altera-stapl
c2port
cardreader misc: rtsx: Fix an error handling path in rtsx_pci_probe() 2022-08-21 15:15:55 +02:00
cb710 cb710: avoid NULL pointer subtraction 2021-10-20 11:45:00 +02:00
cxl cxl: Fix refcount leak in cxl_calc_capp_routing 2023-01-14 10:16:06 +01:00
echo
eeprom eeprom: at24: also select REGMAP 2023-06-14 11:09:57 +02:00
genwqe
habanalabs habanalabs: Add check for pci_enable_device 2022-04-08 14:40:25 +02:00
ibmasm
lis3lv02d
lkdtm lkdtm/usercopy: Expand size of "out of frame" object 2022-06-14 18:32:41 +02:00
mei mei: bus-fixup:upon error print return values of send and receive 2023-03-11 16:40:16 +01:00
ocxl ocxl: fix pci device refcount leak when calling get_function_0() 2023-01-14 10:15:57 +01:00
sgi-gru misc: sgi-gru: fix use-after-free error in gru_set_context_option, gru_fault and gru_handle_user_call_os 2023-01-14 10:15:57 +01:00
sgi-xp
ti-st
uacce uacce: Handle parent device removal or parent driver module rmmod 2022-08-25 11:38:14 +02:00
vmw_vmci vmci_host: fix a race condition in vmci_host_poll() causing GPF 2023-05-17 11:47:56 +02:00
ad525x_dpot-i2c.c
ad525x_dpot-spi.c
ad525x_dpot.c
ad525x_dpot.h
apds990x.c
apds9802als.c
atmel_tclib.c
atmel-ssc.c misc: atmel-ssc: Fix IRQ check in ssc_probe 2022-06-22 14:13:16 +02:00
bh1770glc.c
cs5535-mfgpt.c
ds1682.c
dummy-irq.c
enclosure.c
fastrpc.c misc: fastrpc: Create fastrpc scalar with correct buffer count 2023-07-27 08:44:26 +02:00
hisi_hikey_usb.c
hmc6352.c
hpilo.c
hpilo.h
ibmvmc.c
ibmvmc.h
ics932s401.c
isl29003.c
isl29020.c
Kconfig
kgdbts.c kgdbts: fix return value of __setup handler 2022-04-08 14:40:28 +02:00
lattice-ecp3-config.c misc: lattice-ecp3-config: Fix task hung when firmware load failed 2022-01-27 10:54:08 +01:00
Makefile
pch_phub.c
pci_endpoint_test.c misc: pci_endpoint_test: Re-init completion for every test 2023-07-27 08:44:29 +02:00
phantom.c
pti.c
pvpanic.c
qcom-coincell.c
sram-exec.c
sram.c
sram.h
tifm_7xx1.c misc: tifm: fix possible memory leak in tifm_7xx1_switch_media() 2023-01-14 10:15:57 +01:00
tifm_core.c
tsl2550.c
vmw_balloon.c
xilinx_sdfec.c