mt76: mt7603: check sta_rates pointer in mt7603_sta_rate_tbl_update
stable inclusion from stable-v5.10.110 commit 2430af124125b9be4bcffd2867dbba451daf4666 bugzilla: https://gitee.com/openeuler/kernel/issues/I574AL Reference: https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/commit/?id=2430af124125b9be4bcffd2867dbba451daf4666 -------------------------------- [ Upstream commit fc8e2c70 ] Check sta_rates pointer value in mt7603_sta_rate_tbl_update routine since minstrel_ht_update_rates can fail allocating rates array. Fixes: c8846e10 ("mt76: add driver for MT7603E and MT7628/7688") Signed-off-by: NLorenzo Bianconi <lorenzo@kernel.org> Signed-off-by: NFelix Fietkau <nbd@nbd.name> Signed-off-by: NSasha Levin <sashal@kernel.org> Signed-off-by: NYu Liao <liaoyu15@huawei.com> Reviewed-by: NWei Li <liwei391@huawei.com> Signed-off-by: NZheng Zengkai <zhengzengkai@huawei.com>
Showing
想要评论请 注册 或 登录