]> git.baikalelectronics.ru Git - kernel.git/commit
fsl/fman: fix eth hash table allocation
authorFlorinel Iordache <florinel.iordache@nxp.com>
Mon, 3 Aug 2020 07:07:34 +0000 (10:07 +0300)
committerDavid S. Miller <davem@davemloft.net>
Mon, 3 Aug 2020 23:20:15 +0000 (16:20 -0700)
commit4f170c4a526503502e7a502924f2a040ca3d7aad
tree24eee1f3db5979a932d80ee79076248ace7b6c92
parent04e6506ca6daa0224f55b366f7759a59beb8b123
fsl/fman: fix eth hash table allocation

Fix memory allocation for ethernet address hash table.
The code was wrongly allocating an array for eth hash table which
is incorrect because this is the main structure for eth hash table
(struct eth_hash_t) that contains inside a number of elements.

Fixes: 50447fcc1d2d ("fsl/fman: Add FMan MAC support")
Signed-off-by: Florinel Iordache <florinel.iordache@nxp.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/freescale/fman/fman_mac.h