kernel_samsung_a53x/drivers/misc
Ekansh Gupta 152419421c misc: fastrpc: Clean buffers on remote invocation failures
commit 1c8093591d1e372d700fe65423e7315a8ecf721b upstream.

With current design, buffers and dma handles are not freed in case
of remote invocation failures returned from DSP. This could result
in buffer leakings and dma handle pointing to wrong memory in the
fastrpc kernel. Adding changes to clean buffers and dma handles
even when remote invocation to DSP returns failures.

Fixes: c68cfb718c8f ("misc: fastrpc: Add support for context Invoke method")
Cc: stable <stable@kernel.org>
Signed-off-by: Ekansh Gupta <quic_ekangupt@quicinc.com>
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@linaro.org>
Link: https://lore.kernel.org/r/20231013122007.174464-4-srinivas.kandagatla@linaro.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2024-11-18 10:58:31 +01:00
..
altera-stapl Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
c2port Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cardreader Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cb710 Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cxl Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
drb Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
echo Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
eeprom Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
genwqe Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
habanalabs Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ibmasm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lis3lv02d Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lkdtm Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
mei Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ocxl Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
samsung Fix clang 16 errors treewide 2024-06-15 16:28:48 -03:00
sgi-gru Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sgi-xp Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ti-st Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tui drivers: tui: fix out of tree build 2024-06-15 16:21:18 -03:00
tzdev Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uacce Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmw_vmci Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ad525x_dpot-i2c.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ad525x_dpot-spi.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ad525x_dpot.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ad525x_dpot.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
apds990x.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
apds9802als.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atmel-ssc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
atmel_tclib.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
bh1770glc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
cs5535-mfgpt.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ds1682.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
dummy-irq.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
enclosure.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
fastrpc.c misc: fastrpc: Clean buffers on remote invocation failures 2024-11-18 10:58:31 +01:00
hisi_hikey_usb.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hmc6352.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpilo.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
hpilo.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ibmvmc.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ibmvmc.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
ics932s401.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
isl29003.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
isl29020.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Kconfig Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
kgdbts.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
lattice-ecp3-config.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
Makefile Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pch_phub.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pci_endpoint_test.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
phantom.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pti.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
pvpanic.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
qcom-coincell.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sram-exec.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sram.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
sram.h Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tifm_7xx1.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tifm_core.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
tsl2550.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
uid_sys_stats.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
vmw_balloon.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00
xilinx_sdfec.c Import A536BXXU9EXDC 2024-06-15 16:02:09 -03:00