From mboxrd@z Thu Jan 1 00:00:00 1970 From: David Miller Subject: Re: [PATCH] net/mlx5: Allocate enough space for the FDB sub-namespaces Date: Mon, 22 Oct 2018 19:46:55 -0700 (PDT) Message-ID: <20181022.194655.1292491813660625818.davem@davemloft.net> References: <1540119949-1748-1-git-send-email-ogerlitz@mellanox.com> Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit Cc: saeedm@mellanox.com, netdev@vger.kernel.org, dan.carpenter@oracle.com To: ogerlitz@mellanox.com Return-path: Received: from shards.monkeyblade.net ([23.128.96.9]:40034 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726894AbeJWLIN (ORCPT ); Tue, 23 Oct 2018 07:08:13 -0400 In-Reply-To: <1540119949-1748-1-git-send-email-ogerlitz@mellanox.com> Sender: netdev-owner@vger.kernel.org List-ID: From: Or Gerlitz Date: Sun, 21 Oct 2018 14:05:49 +0300 > From: Dan Carpenter > > 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: 328edb499f99 ("net/mlx5: Split FDB fast path prio to multiple namespaces") > Signed-off-by: Dan Carpenter > Reviewed-by: Or Gerlitz Applied to net-next.