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 AA88FC433EF for ; Tue, 26 Apr 2022 20:06:16 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1354436AbiDZUJW (ORCPT ); Tue, 26 Apr 2022 16:09:22 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:41576 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1354435AbiDZUJT (ORCPT ); Tue, 26 Apr 2022 16:09:19 -0400 Received: from ams.source.kernel.org (ams.source.kernel.org [145.40.68.75]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id E8865156E05; Tue, 26 Apr 2022 13:06:10 -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 ams.source.kernel.org (Postfix) with ESMTPS id 57850B82297; Tue, 26 Apr 2022 20:06:09 +0000 (UTC) Received: by smtp.kernel.org (Postfix) with ESMTPSA id D2783C385A0; Tue, 26 Apr 2022 20:06:07 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=k20201202; t=1651003568; bh=bRIAOW8MSNcjmN2r2hX9HCGqZT4c1n+XTVX6V+711TY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=HC9c8xmdHLECMWg/WWhX1mMBrsM+2yEPLyd31gU0mYV5sH0vbxf3BvVYmJ7QCDBB9 qY3J4BoDm6eIwvJk14WeKSEjdam2krEjk2Z+rt0QwkeRlawqQGWpisGTCe0hnD8x0P 61lHkHL7L0QnLNx6f5C0AoWAR5vqCFAmzN8SlV2lC9g1UmC99oOsJanRvAz6pqjemI jeXJgq16UVrZ9Z78UGZL/z4i+pu2m97hhi7dANSxo5HGdX+cQanVzVUExFVVZ6GDPJ PRYbJwvDGmF2cIu0ajeO29AQOhqJAlxv1jN56HisOe9VyhLe7p75JO81gdek0vQUpB PPnZD3db/tkqw== Date: Tue, 26 Apr 2022 13:06:07 -0700 From: Saeed Mahameed To: Ziyang Xuan Cc: saeedm@nvidia.com, leon@kernel.org, davem@davemloft.net, kuba@kernel.org, pabeni@redhat.com, paulb@nvidia.com, netdev@vger.kernel.org, linux-rdma@vger.kernel.org Subject: Re: [PATCH net] net/mlx5: use kvfree() for kvzalloc() in mlx5_ct_fs_smfs_matcher_create Message-ID: <20220426200607.mecnebfcfu7u3upi@sx1> References: <20220420103617.3006047-1-william.xuanziyang@huawei.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii; format=flowed Content-Disposition: inline In-Reply-To: <20220420103617.3006047-1-william.xuanziyang@huawei.com> Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org On 20 Apr 18:36, Ziyang Xuan wrote: >The memory of spec is allocated with kvzalloc(), the corresponding >release function should not be kfree(), use kvfree() instead. > >Generated by: scripts/coccinelle/api/kfree_mismatch.cocci > >Signed-off-by: Ziyang Xuan applied to net-next-mlx5, thanks !