提交 9f64df94 编写于 作者: H Hante Meuleman 提交者: Kalle Valo

brcmfmac: Fix bug in flowring management.

The hash index stored in the flowrings is of type u16 but gets
stored in u8. This can result in incorrect indexing and possibly
result in crashes. This patch fixes the type.
Reviewed-by: NArend Van Spriel <arend@broadcom.com>
Reviewed-by: NPieter-Paul Giesberts <pieterpg@broadcom.com>
Signed-off-by: NHante Meuleman <meuleman@broadcom.com>
Signed-off-by: NArend van Spriel <arend@broadcom.com>
Signed-off-by: NKalle Valo <kvalo@codeaurora.org>
上级 ae7c03f6
......@@ -34,7 +34,7 @@ enum ring_status {
};
struct brcmf_flowring_ring {
u8 hash_id;
u16 hash_id;
bool blocked;
enum ring_status status;
struct sk_buff_head skblist;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册