]> 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)
commitf78a5ce7697c4825dbf11555fb120bd9bfb1f92d
tree4a44bff3940e18c765fa867c7de3aca007d082d7
parent596497e5457b1595a9b8adffbf3560e9cb08beb9
hinic: Avoid some over memory allocation

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

Fixes: 066f01f5f6b5 ("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