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: Arend Van Spriel <arend@broadcom.com> Reviewed-by: Pieter-Paul Giesberts <pieterpg@broadcom.com> Signed-off-by: Hante Meuleman <meuleman@broadcom.com> Signed-off-by: Arend van Spriel <arend@broadcom.com> Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
This commit is contained in:
parent
ae7c03f68e
commit
9f64df940c
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue