wifi: mt76: testmode: add nla_policy for MT76_TM_ATTR_TX_LENGTH
It seems that the nla_policy in mt76_tm_policy is missed for attribute MT76_TM_ATTR_TX_LENGTH. This patch adds the correct description to make sure the u32 val = nla_get_u32(tb[MT76_TM_ATTR_TX_LENGTH]); in function mt76_testmode_cmd() is safe and will not result in out-of-attribute read. Fixes: ("mt76: add API for testmode support") Signed-off-by:Lin Ma <linma@zju.edu.cn> Signed-off-by:
Felix Fietkau <nbd@nbd.name> Signed-off-by:
Sasha Levin <sashal@kernel.org>
parent
697a2c06
No related branches found
No related tags found
-
mentioned in commit clea-os/layers/seco/meta-seco-mtk@af6081dd
-
mentioned in merge request clea-os/layers/seco/meta-seco-mtk!23 (closed)
-
mentioned in commit clea-os/seco-manifest@462cfd82
Please register or sign in to comment