Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751345AbdFEEvZ (ORCPT ); Mon, 5 Jun 2017 00:51:25 -0400 Received: from mail-wm0-f67.google.com ([74.125.82.67]:35887 "EHLO mail-wm0-f67.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751234AbdFEEvY (ORCPT ); Mon, 5 Jun 2017 00:51:24 -0400 Date: Mon, 5 Jun 2017 06:51:16 +0200 From: Jiri Pirko To: Haishuang Yan Cc: "David S. Miller" , Arkadi Sharshevsky , Jiri Pirko , netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH v2] devlink: fix potential memort leak Message-ID: <20170605045116.GB1929@nanopsycho.orion> References: <1496624241-25794-1-git-send-email-yanhaishuang@cmss.chinamobile.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1496624241-25794-1-git-send-email-yanhaishuang@cmss.chinamobile.com> User-Agent: Mutt/1.8.0 (2017-02-23) Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 328 Lines: 9 Mon, Jun 05, 2017 at 02:57:21AM CEST, yanhaishuang@cmss.chinamobile.com wrote: >We must free allocated skb when genlmsg_put() return fails. > >Fixes: 1555d204e743 ("devlink: Support for pipeline debug (dpipe)") >Signed-off-by: Haishuang Yan Acked-by: Jiri Pirko Thanks.