]> git.baikalelectronics.ru Git - kernel.git/commit
wifi: mt76: add memory barrier to SDIO queue kick
authorDeren Wu <deren.wu@mediatek.com>
Sun, 15 Jan 2023 04:44:57 +0000 (12:44 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 10 Mar 2023 08:32:59 +0000 (09:32 +0100)
commitd5f6ceedac7a4ad23afba210f9a61c5cfafbbad8
tree6d51d158237c021c36e5de701267abf52cdd6e1f
parent7371cf0eda764c8e6cfd3de0f9780246063f4fa4
wifi: mt76: add memory barrier to SDIO queue kick

[ Upstream commit 8088cad892dcf228e042f3e43ef4ca21f1861d45 ]

Ensure the entry has been fully updated before SDIO bus worker access
it. This patch would fix potential memory risk in both mt7663s and
mt7921s.

Fixes: 761288617e13 ("mt76: sdio: move common code in mt76_sdio module")
Signed-off-by: Deren Wu <deren.wu@mediatek.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Felix Fietkau <nbd@nbd.name>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/net/wireless/mediatek/mt76/sdio.c