]> git.baikalelectronics.ru Git - kernel.git/commit
hinic: Avoid some over memory allocation
authorChristophe JAILLET <christophe.jaillet@wanadoo.fr>
Sat, 21 May 2022 06:33:01 +0000 (08:33 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sun, 22 May 2022 20:47:57 +0000 (21:47 +0100)
commit85697015dfc80d32a518e8955af64d4e877b4bbe
tree4a44bff3940e18c765fa867c7de3aca007d082d7
parentc428369b7e8f546a805a6fe12a1f04618b66cf86
hinic: Avoid some over memory allocation

'prod_idx' (atomic_t) is larger than 'shadow_idx' (u16), so some memory is
over-allocated.

Fixes: dd951b85a934 ("net-next/hinic: Add wq")
Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/huawei/hinic/hinic_hw_wq.c