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 Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id DE528C433FE for ; Tue, 18 Oct 2022 10:26:21 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229865AbiJRK0T (ORCPT ); Tue, 18 Oct 2022 06:26:19 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:45412 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229752AbiJRK0R (ORCPT ); Tue, 18 Oct 2022 06:26:17 -0400 Received: from dfw.source.kernel.org (dfw.source.kernel.org [IPv6:2604:1380:4641:c500::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id EC8C5895D5; Tue, 18 Oct 2022 03:26:15 -0700 (PDT) Received: from smtp.kernel.org (relay.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by dfw.source.kernel.org (Postfix) with ESMTPS id 8C73C61517; Tue, 18 Oct 2022 10:26:15 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29E45C433C1; Tue, 18 Oct 2022 10:26:13 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1666088774; bh=O+F9PZUtZ1aoM1l0AUhHXjYWG/zaP+5OTgFirZPQLkU=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=oT4axrZfBywUV8Z0rA5hBF4fjTRgDxQIZgp11Dq1HZhotk/ZglH7tjqXCr1Y3EnIS Lx9B0xYNMyUn4sl2lqomEGhbHO/IHqrHC6pAncfMVjinxW+jAfaNYGjAKrm+Ug5T1F kXKvKVobP4NQXtW0nxlHR9Hs/3Dj4hR00HWoGTqWOJTtQ2dUiV0wLLY9P/90rN2QqR JbgdSF1QQjfRlh7235JxvOcOHTBdeNYXs2RY94P7vLfULKSChHWhEiiMwoLTlzeJdZ zOqjOSA5T7EixCTuxAz+nGutMNkBoUwyr1lrzCSFN8dXy0BY5cNox8KQHbmBIz6fb+ vS1ieLyjLS7rg== Date: Tue, 18 Oct 2022 13:26:09 +0300 From: Leon Romanovsky To: "David S . Miller" , Jakub Kicinski , Paolo Abeni , Eric Dumazet Cc: Dan Carpenter , Emeel Hakim , linux-rdma@vger.kernel.org, netdev@vger.kernel.org, Raed Salem , Saeed Mahameed , Tariq Toukan Subject: Re: [PATCH net] net/mlx5e: Cleanup MACsec uninitialization routine Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org On Thu, Oct 13, 2022 at 10:21:00AM +0300, Leon Romanovsky wrote: > From: Leon Romanovsky > > The mlx5e_macsec_cleanup() routine has pointer dereferencing if mlx5 device > doesn't support MACsec (priv->macsec will be NULL) together with useless > comment line, assignment and extra blank lines. > > Fix everything in one patch. > > Fixes: 1f53da676439 ("net/mlx5e: Create advanced steering operation (ASO) object for MACsec") > Reported-by: Dan Carpenter > Signed-off-by: Leon Romanovsky > --- > .../net/ethernet/mellanox/mlx5/core/en_accel/macsec.c | 11 +---------- > 1 file changed, 1 insertion(+), 10 deletions(-) Gentle ping. Thanks