Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1758339AbcK3RD0 (ORCPT ); Wed, 30 Nov 2016 12:03:26 -0500 Received: from shards.monkeyblade.net ([184.105.139.130]:36442 "EHLO shards.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1758277AbcK3RDQ (ORCPT ); Wed, 30 Nov 2016 12:03:16 -0500 Date: Wed, 30 Nov 2016 12:03:12 -0500 (EST) Message-Id: <20161130.120312.1290411449256338013.davem@davemloft.net> To: yanhaishuang@cmss.chinamobile.com Cc: jbenc@redhat.com, hannes@stressinduktion.org, pshelar@nicira.com, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] vxlan: fix a potential issue when create a new vxlan fdb entry. From: David Miller In-Reply-To: <1480384776-8252-1-git-send-email-yanhaishuang@cmss.chinamobile.com> References: <1480384776-8252-1-git-send-email-yanhaishuang@cmss.chinamobile.com> X-Mailer: Mew version 6.7 on Emacs 24.5 / Mule 6.0 (HANACHIRUSATO) Mime-Version: 1.0 Content-Type: Text/Plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Greylist: Sender succeeded SMTP AUTH, not delayed by milter-greylist-4.5.12 (shards.monkeyblade.net [149.20.54.216]); Wed, 30 Nov 2016 08:03:51 -0800 (PST) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 348 Lines: 12 From: Haishuang Yan Date: Tue, 29 Nov 2016 09:59:36 +0800 > vxlan_fdb_append may return error, so add the proper check, > otherwise it will cause memory leak. > > Signed-off-by: Haishuang Yan > > Changes in v2: > - Unnecessary to initialize rc to zero. Applied, thanks.