linux-stable/drivers/platform/mellanox
Liming Sun 61c3962ab1 platform/mellanox: fix potential race in mlxbf-tmfifo driver
[ Upstream commit 3d43f9f639 ]

This commit adds memory barrier for the 'vq' update in function
mlxbf_tmfifo_virtio_find_vqs() to avoid potential race due to
out-of-order memory write. It also adds barrier for the 'is_ready'
flag to make sure the initializations are visible before this flag
is checked.

Signed-off-by: Liming Sun <limings@nvidia.com>
Reviewed-by: Vadim Pasternak <vadimp@nvidia.com>
Link: https://lore.kernel.org/r/b98c0ab61d644ba38fa9b3fd1607b138b0dd820b.1682518748.git.limings@nvidia.com
Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2023-06-09 10:34:08 +02:00
..
Kconfig platform: mellanox: select REGMAP instead of depending on it 2023-03-17 08:50:27 +01:00
Makefile
mlxbf-bootctl.c
mlxbf-bootctl.h
mlxbf-pmc.c platform/mellanox: mlxbf-pmc: fix sscanf() error checking 2023-05-30 14:03:32 +01:00
mlxbf-tmfifo-regs.h
mlxbf-tmfifo.c platform/mellanox: fix potential race in mlxbf-tmfifo driver 2023-06-09 10:34:08 +02:00
mlxreg-hotplug.c
mlxreg-io.c platform/mellanox: mlxreg-io: Add locking for io operations 2022-07-14 22:34:42 +02:00
mlxreg-lc.c platform/mellanox: mlxreg-lc: Make error handling flow consistent 2022-09-09 21:58:16 +02:00
nvsw-sn2201.c platform/mellanox: nvsw-sn2201: fix error code in nvsw_sn2201_create_static_devices() 2022-06-27 09:38:56 +02:00