[<prev] [next>] [thread-next>] [day] [month] [year] [list]
Message-Id: <cover.1670421354.git.lorenzo@kernel.org>
Date: Wed, 7 Dec 2022 15:04:53 +0100
From: Lorenzo Bianconi <lorenzo@...nel.org>
To: netdev@...r.kernel.org
Cc: nbd@....name, john@...ozen.org, sean.wang@...iatek.com,
Mark-MC.Lee@...iatek.com, davem@...emloft.net, edumazet@...gle.com,
kuba@...nel.org, pabeni@...hat.com, matthias.bgg@...il.com,
linux-mediatek@...ts.infradead.org, lorenzo.bianconi@...hat.com,
leon@...nel.org, sujuan.chen@...iatek.com
Subject: [PATCH v3 net-next 0/2] fix possible deadlock during WED attach
Fix a possible deadlock in mtk_wed_attach if mtk_wed_wo_init routine fails.
Check wo pointer is properly allocated before running mtk_wed_wo_reset() and
mtk_wed_wo_deinit().
Changes sice v2:
- add WARN_ON in mtk_wed_mcu_msg_update()
- split in two patches
Changes since v1:
- move wo pointer checks in __mtk_wed_detach()
Lorenzo Bianconi (2):
net: ethernet: mtk_wed: fix some possible NULL pointer dereferences
net: ethernet: mtk_wed: fix possible deadlock if mtk_wed_wo_init fails
drivers/net/ethernet/mediatek/mtk_wed.c | 30 ++++++++++++++-------
drivers/net/ethernet/mediatek/mtk_wed_mcu.c | 3 +++
2 files changed, 23 insertions(+), 10 deletions(-)
--
2.38.1
Powered by blists - more mailing lists