From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-16.2 required=3.0 tests=BAYES_00,DKIMWL_WL_HIGH, DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,INCLUDES_CR_TRAILER,INCLUDES_PATCH, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id BB7D9C433DB for ; Thu, 21 Jan 2021 17:50:57 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id 5D34421973 for ; Thu, 21 Jan 2021 17:50:57 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389210AbhAURuw (ORCPT ); Thu, 21 Jan 2021 12:50:52 -0500 Received: from mail.kernel.org ([198.145.29.99]:53136 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2388179AbhAURuX (ORCPT ); Thu, 21 Jan 2021 12:50:23 -0500 Received: by mail.kernel.org (Postfix) with ESMTPSA id 18DA7207C5; Thu, 21 Jan 2021 17:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1611251381; bh=q47TsziiuHREj7VxUa6dHIThjn23RfAisk8X3eojDac=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Fq2MhBjBUSfg/khaKz8XaxgTaHt1FEfg5aQjkg9PftqoTLWHKrvCHSsOPdOB39XBd kDj4m/IqIzFpangxVOnOeQY2ybrLM9TKZ5MXgenmSBmdX/4llLbKmyjke1b+lpgwPp 3ChmBj4iVg//8FqL2p/VQ/EHmZ0eu8IBQgmH3g/bxlUg2sav6oNNelDxkrJZqj10it xxiJhfIyVJiah3FygFYRJsDU0Tp59bahmLAgMdcO5BLuuzD/po8eOuYcEwFi9GLP3P vxBAhgajYtrVZRRspOrTgsHArvtiXVJJf3mbDWI6v6IW9hNyPmQl3QMWTAa5NESckZ OXPgTC7yoXj1A== Date: Thu, 21 Jan 2021 19:49:38 +0200 From: Leon Romanovsky To: Pan Bian Cc: Saeed Mahameed , "David S. Miller" , Jakub Kicinski , Aya Levin , Tariq Toukan , Eran Ben Elisha , Moshe Shemesh , Moshe Tal , Joe Perches , Jiri Pirko , netdev@vger.kernel.org, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] net/mlx5e: free page before return Message-ID: <20210121174938.GG320304@unreal> References: <20210121045830.96928-1-bianpan2016@163.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210121045830.96928-1-bianpan2016@163.com> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, Jan 20, 2021 at 08:58:30PM -0800, Pan Bian wrote: > Instead of directly return, goto the error handling label to free > allocated page. > > Fixes: 5f29458b77d5 ("net/mlx5e: Support dump callback in TX reporter") > Signed-off-by: Pan Bian > --- > drivers/net/ethernet/mellanox/mlx5/core/en/health.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) > Thanks, Reviewed-by: Leon Romanovsky