]> git.baikalelectronics.ru Git - kernel.git/commit
net/mlx5: Allocate enough space for the FDB sub-namespaces
authorDan Carpenter <dan.carpenter@oracle.com>
Sun, 21 Oct 2018 11:05:49 +0000 (14:05 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 23 Oct 2018 02:46:34 +0000 (19:46 -0700)
commitc34eb59ade1a2bb3a687b821c33c50b11b0520a4
treeefa693c7eb9af150034b74fd5769a689b30e70af
parent1e869c0e2f8f59d288e98441fd66d241d142033a
net/mlx5: Allocate enough space for the FDB sub-namespaces

FDB_MAX_CHAIN is three.  We wanted to allocate enough memory to hold four
structs but there are missing parentheses so we only allocate enough
memory for three structs and the first byte of the fourth one.

Fixes: ab44260c0242 ("net/mlx5: Split FDB fast path prio to multiple namespaces")
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Or Gerlitz <ogerlitz@mellanox.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/mellanox/mlx5/core/fs_core.c