diff options
author | Liming Sun <limings@nvidia.com> | 2023-04-26 10:23:44 -0400 |
---|---|---|
committer | Hans de Goede <hdegoede@redhat.com> | 2023-05-09 11:54:35 +0200 |
commit | 3d43f9f639542fadfb28f40b509bf147a6624d48 (patch) | |
tree | 2c6f87557b386d54a5458f9d0f18887718a2e782 /drivers/platform/x86/barco-p50-gpio.c | |
parent | 4b65f95c87c35699bc6ad540d6b9dd7f950d0924 (diff) |
platform/mellanox: fix potential race in mlxbf-tmfifo driver
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>
Diffstat (limited to 'drivers/platform/x86/barco-p50-gpio.c')
0 files changed, 0 insertions, 0 deletions