Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp706846pxf; Thu, 1 Apr 2021 11:23:06 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzT8v4WxvyNESu8AZ4KDcUnD26IsoHDSDmdtq4w7obE40aKaXU/vHFbLtycT2t3vJkSh8Xf X-Received: by 2002:a17:907:76b6:: with SMTP id jw22mr10439096ejc.11.1617301386345; Thu, 01 Apr 2021 11:23:06 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617301386; cv=none; d=google.com; s=arc-20160816; b=K5xznd4tsYwokyVSmac2JyZ0g+aKeT/3Ye6z6uNTEFPvLUMUwFJUHZdLnd+4yzWodF +5vABBy6xnltpc4/25hQwfDoJ0VxgizYD+wvXoU6CWeoTioclgrDCMvw4TZVkQDpOjGj Daf4s3WZ+IU/CBRY+Izz86NLdJ4lvQa9DEpBBd8iIIOcLDCRkX29x7yONYVsPlXzuNEN gNnpf3lqOdA7zNf5WVXL/oC7MrTN8rvPtpvFx5SucQ1uMwC8CuVAHTHs1k2wELFBwD0R 9oNOFpH5ZSl+ZGixzbyMlUiDv4Gi+KK8ca5GViMC4dgtQ2F23q3TDEHbe1XPtuRC6n15 TD0w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-disposition:mime-version:message-id :subject:cc:illegal-object:to:from:date:dkim-signature; bh=uG5kp6AR60MZkAQXLptUHPA/6zNjsruLGdIq/mc434k=; b=LUDpqKuaYmyBbMudUtgpPKW7OF+A85IPnJ5FSiv6AnXZIXpAQzkiB4J8SfsIlO8R+j w68yY7FTOcvrDtno/0pRKFWKbaWmJkDhrhvV7Gr6FpKG+rx9sdhQA3Og5i6QnfELJbMa yLNS3nkYCFLH+UpchVuOtqY4MYqJu1vkoQsrI53wxmKSDhYJTjIrSc8cepxvxbOkAnjD rvlmlnprTJ2y8krFyGiArNzj0QgXG7El7C51DSBhaXkr6lsLhaJ0XFptLdV/ICH7iY21 M4vebS746ArEbhBMDGPPo8Gj3gxeKucGehraNOhL/ajqjR+DvQ0OTWYtwC7aAg9Fqhuf HTfA== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@gmail.com header.s=20161025 header.b="rB7/nuCM"; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id i8si4640248edy.129.2021.04.01.11.22.40; Thu, 01 Apr 2021 11:23:06 -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; dkim=fail header.i=@gmail.com header.s=20161025 header.b="rB7/nuCM"; 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; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S237565AbhDASTc (ORCPT + 99 others); Thu, 1 Apr 2021 14:19:32 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:34268 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S237579AbhDASAm (ORCPT ); Thu, 1 Apr 2021 14:00:42 -0400 Received: from mail-wr1-x42e.google.com (mail-wr1-x42e.google.com [IPv6:2a00:1450:4864:20::42e]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 7EFBAC0613AA; Thu, 1 Apr 2021 04:39:42 -0700 (PDT) Received: by mail-wr1-x42e.google.com with SMTP id x7so1479901wrw.10; Thu, 01 Apr 2021 04:39:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=date:from:to:cc:subject:message-id:mime-version:content-disposition; bh=uG5kp6AR60MZkAQXLptUHPA/6zNjsruLGdIq/mc434k=; b=rB7/nuCMTPXj9vPzc0ILrIRFRTkz8wShlmfJ1IHage/FeP0jSqbFrzvI9w7/qOXlEg bfdH/0PB6bmNkBbzGKCw27lJ9Qxj1aOM1QWJ3YN71KSd6J2V7TKh2ZiNYUDKvHJWAbHk /FjE/wVgaTVUYYMuc6MQruk7vAEQAVdkxqu/cU1hxRbM0icTENPIYgxA8RtcEOEOrtHH WRwR3F2FGR51SwCsvk50SPkURNbfpnRGZ1fc9o0OPNBhWFzMFpOD64z7t2YYcp14hdPW kTuluLXNjFLY3YrHwE+cGOIH6ihFEDXuwyw/Z3TBS1U5i/SUGE21LG52mt7AGmkgAnYa jPwA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:date:from:to:cc:subject:message-id:mime-version :content-disposition; bh=uG5kp6AR60MZkAQXLptUHPA/6zNjsruLGdIq/mc434k=; b=RVC+SSxQB0oykGHgQ1roTThaNz/7uA47bmhMbihj1nc5XUXmxbyXxk00eFp9I1xxwM VVC/M7lnGgZuNBWWWJEg7fGV8rAhPIhMO3uCfFAavcgcV/75v/fsRZKiXXNWFZvm8bPt v7DCqCl6CvMvSHe7aabaoBvSfI+rrXm24P4bVcz+lMYe6+Ntw/UAYDVrSFTGhFijditC vPsfelAH3RkzpA6Nb0ZUEPmH5RkG+KIS3KJjuf7orOJ1VGAMDqfyTSXxUqEj9rnIUNCf sDl222nroXoaQe6QiWodR/zBcmr9PLYSXjh71ERY8wv6tTEplE1PxPKGU/QAN/rCSm7Y ov9A== X-Gm-Message-State: AOAM531PjeaU0IOgNvb73KY0CAYOBZlnPTa+nkH7mkd2CKstNj810nv3 8AHvmewLyJiSA9zLOY+0bhg= X-Received: by 2002:a5d:6d05:: with SMTP id e5mr8834723wrq.324.1617277181341; Thu, 01 Apr 2021 04:39:41 -0700 (PDT) Received: from LEGION ([39.46.7.73]) by smtp.gmail.com with ESMTPSA id b15sm9292185wrx.73.2021.04.01.04.39.36 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 01 Apr 2021 04:39:40 -0700 (PDT) Date: Thu, 1 Apr 2021 16:39:33 +0500 From: Muhammad Usama Anjum To: Namjae Jeon , Sergey Senozhatsky , Steve French , Hyunchul Lee , open list: COMMON INTERNET FILE SYSTEM SERVER , COMMON INTERNET FILE SYSTEM SERVER , open list , kernel-janitors@vger.kernel.org, colin.king@canonical.com, dan.carpenter@oracle.com, ; Illegal-Object: Syntax error in To: address found on vger.kernel.org: To: ; ^-missing semicolon to end mail group, extraneous tokens in mailbox, missing end of mailbox Cc: musamaanjum@gmail.com Subject: [PATCH] cifsd: use kfree to free memory allocated by kzalloc Message-ID: <20210401113933.GA2828895@LEGION> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org kfree should be used to free memory allocated by kzalloc to avoid any overhead and for maintaining consistency. Fixes: 5dfeb6d945 ("cifsd: use kmalloc() for small allocations") Signed-off-by: Muhammad Usama Anjum --- This one place was left in earlier patch. I've already received responsse on that patch. I'm sending a separate patch. fs/cifsd/transport_tcp.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/cifsd/transport_tcp.c b/fs/cifsd/transport_tcp.c index 67163efcf472..040881893417 100644 --- a/fs/cifsd/transport_tcp.c +++ b/fs/cifsd/transport_tcp.c @@ -551,7 +551,7 @@ void ksmbd_tcp_destroy(void) list_for_each_entry_safe(iface, tmp, &iface_list, entry) { list_del(&iface->entry); kfree(iface->name); - ksmbd_free(iface); + kfree(iface); } } -- 2.25.1