Received: by 2002:a25:683:0:0:0:0:0 with SMTP id 125csp2417187ybg; Fri, 5 Jun 2020 13:26:36 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyXpAHMw7pyeesIKbyWhFKC0oXWDhUXMWbngffq3PR6mPt82hDoOUnMDTMYLkKbdPDzFIEC X-Received: by 2002:a17:906:cd06:: with SMTP id oz6mr10962879ejb.434.1591388796675; Fri, 05 Jun 2020 13:26:36 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1591388796; cv=none; d=google.com; s=arc-20160816; b=ds1Rqf36UyGrZKYIQCCVqzE8rddNm6jghRa83gk2+OOSmrmhn9LdU6x5DZNsxcyRO6 hjLGyYpAU70RZ3gukSjqNo1RjmsDpnbe5vQkpzZicK/v9AiTvbwC7Vt3KgmbzUPsl4GW dhWBhUF5pHgg2XGJQ+HiM8xjv7ulisiM+8QopYxwr0v5RXePbeVc4jU9n43e0b6Fn2YQ DgimIrYTBGxPOXSuCsu57767zf5wUzlJYfHZJL6RFet/CRyPoecbAgSwTrGnRgiV2rqf pPNFIEslsH+RPSo8TxxxtbwaOTLRTdb4eIoiWPMUKvK1wGclsPxNbmcCMzzzkARiTN72 6xlA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding:mime-version :references:in-reply-to:from:subject:cc:to:message-id:date; bh=yWEha7TR0qE/D2rVcVB7QaATuHl5ZTIEDAOccG8uwjY=; b=SRvioglq6GPK2OarROLr5P750uQ+0vl+is8A91VFlXi6tnWGg7vbCaKwlSkwUJjC0v qThxrfLj3BswtRlGl+z3dD8wLQF9g+Wfyrch/pv+NlWdRze2GMAiYjRcSJIyhCjJ8vqf JgpNx/ETYILcxwvDTGl0rAZ95HuQ3qRkvSfhbzeUx80duTSZMrwSDOwz94QafSMRCvBH oftw3QhEWhug6bP941nldJ0iXtQ7XdTx0lwXVXSnctyqOJSaTAj3zITb5FnmpQFJkm7J fHvtbNshN283YImxGv1vmYz5fXByJ0qFY/z94aIQIlfWBg7jAEnPpleoauNIxBL1mzlZ yIlg== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id p6si4181194ejb.575.2020.06.05.13.26.14; Fri, 05 Jun 2020 13:26:36 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1728278AbgFEUXS (ORCPT + 99 others); Fri, 5 Jun 2020 16:23:18 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:49776 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1727960AbgFEUXS (ORCPT ); Fri, 5 Jun 2020 16:23:18 -0400 Received: from shards.monkeyblade.net (shards.monkeyblade.net [IPv6:2620:137:e000::1:9]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 6F347C08C5C3; Fri, 5 Jun 2020 13:23:18 -0700 (PDT) Received: from localhost (unknown [IPv6:2601:601:9f00:477::3d5]) (using TLSv1 with cipher AES256-SHA (256/256 bits)) (Client did not present a certificate) (Authenticated sender: davem-davemloft) by shards.monkeyblade.net (Postfix) with ESMTPSA id EC172127B15D3; Fri, 5 Jun 2020 13:23:17 -0700 (PDT) Date: Fri, 05 Jun 2020 13:23:17 -0700 (PDT) Message-Id: <20200605.132317.18284412642220043.davem@davemloft.net> To: efremov@linux.com Cc: vishal@chelsio.com, kuba@kernel.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] cxgb4: Use kfree() instead kvfree() where appropriate From: David Miller In-Reply-To: <20200605191144.78083-1-efremov@linux.com> References: <20200605191144.78083-1-efremov@linux.com> X-Mailer: Mew version 6.8 on Emacs 26.3 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]); Fri, 05 Jun 2020 13:23:18 -0700 (PDT) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Denis Efremov Date: Fri, 5 Jun 2020 22:11:44 +0300 > Use kfree(buf) in blocked_fl_read() because the memory is allocated with > kzalloc(). Use kfree(t) in blocked_fl_write() because the memory is > allocated with kcalloc(). > > Signed-off-by: Denis Efremov Applied.