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:
Hante Meuleman 2015-09-18 22:08:09 +02:00 committed by Kalle Valo
parent ae7c03f68e
commit 9f64df940c
1 changed files with 1 additions and 1 deletions

View File

@ -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;