Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp1608970pxf; Fri, 19 Mar 2021 10:58:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJz4dMPO1ioWE3iP4L3h/GF9uAFsdbe0ffyNTcJfOiniIMfjdLFAOKPmrBGTBowQsKMsdo/f X-Received: by 2002:a17:906:9888:: with SMTP id zc8mr5918763ejb.310.1616176685596; Fri, 19 Mar 2021 10:58:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1616176685; cv=none; d=google.com; s=arc-20160816; b=yJCWHq2yXuH3Ceqz77gCVZiu+pXp8J7JCdGnZF4gRK1ChpBStmJgbceaBEf9a1RJOu m2nIQ+tNYTvD/UvQpzl4iWNHtM16Wp4ednzWzcMf1WmU/JfIWR8iMrEYmKLccZ+hmR9O KxaPK10PCkrYcCPgs7ekLg20Y5XHhUFJwv/rMXw3geq7jUbM8OI5X9xoUYMhT3dYyhUJ wDhC/73FvnVmvnXqW30Opki4lWVMl+IpiTgpUww0G/1BrbODC9nj6vPOv0RZ0tPVQmBT z6uSt0XmEnFsuWfWuCIjUGj2sWAMc24cAxVzc0g7gewfG8BvgPnXTBKbNmNgr4h0OWjQ Ga0g== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject:dkim-signature; bh=EN3uRBxUV6eO1T+kGUJLe9TYovHE3LSSTvhishvZdAI=; b=VrmdbNjYaQdUp47AtRYkHLtytSnpHosKhr5Tupn9PIe/ubcwmGK1RVyVYAsshGhNzQ OlJgFPeqkI3T2zfDFPQcY6k3m+uAkqYlvfxKzUebrK4RWyrQwZcY18al8wZs9GvN0jMb NYIA3y0heQ9ni4/2x0ndrN8ddfcTpKm25cUjJpFvJhFM8ge+hh758tSDupFO2QdvWDCu lOhcf7YT7dXppYkhOCUxN9G08eYjN3PnUx7tdjduD5SneGw35SJcKXwGZhDW08jhbTH4 h+t4pF3dT6ePTDwVSahEMyElSS0USuNlalMk6Ko2jAc6F3nagyh+NHVSJTX1C+Qv4QM7 Pxyg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=c+1GxprW; 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=pass (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 i24si4850035ejf.53.2021.03.19.10.57.42; Fri, 19 Mar 2021 10:58:05 -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=pass header.i=@gmail.com header.s=20161025 header.b=c+1GxprW; 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=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230226AbhCSR4b (ORCPT + 99 others); Fri, 19 Mar 2021 13:56:31 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:43530 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229956AbhCSR4J (ORCPT ); Fri, 19 Mar 2021 13:56:09 -0400 Received: from mail-lj1-x232.google.com (mail-lj1-x232.google.com [IPv6:2a00:1450:4864:20::232]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 8D3D6C06174A; Fri, 19 Mar 2021 10:56:08 -0700 (PDT) Received: by mail-lj1-x232.google.com with SMTP id 184so13016621ljf.9; Fri, 19 Mar 2021 10:56:08 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=subject:to:cc:references:from:message-id:date:user-agent :mime-version:in-reply-to:content-language:content-transfer-encoding; bh=EN3uRBxUV6eO1T+kGUJLe9TYovHE3LSSTvhishvZdAI=; b=c+1GxprWueFENyi5K/CZts1MNjoFWJg8eQS3tOBmbBISXM0M/JelqTmfQUv8lPyCUW XiswpSTRG6ELr/fdzcZ424IoINC0GuPR6SfL3Moby6GVLSXPvNdJzQk1Oob3tjzjTg2L HDT3gqB7gupOd0yaZtsMP+0wxcE1xpHGmS7ya7hhpI3s3Sj3NBIKgjjpkADq10BWruzv OaC+UV/CHIBV2GFJA8QQaKUG4JUiy1geLpHIVDYe9mWWtS8q8Doj6vwhZDKb4v2UTxt/ 9enabFoP27vZEiILngtyCXA4nK52I6+oAhW2tHBNk/tzR205zZanwCHolFibW14G7wNR Oq7g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:cc:references:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=EN3uRBxUV6eO1T+kGUJLe9TYovHE3LSSTvhishvZdAI=; b=QvrE5tlEYNTJ06olR9Rem2vTOkTdUlLYNjtptAVZT9MeITJngBEHhT5siv+1JMxuzo baJmO43YaQzOJYxBSkVLsGiE2xlEZYLZTD0BCz9zZgY1pnp6kv+5uVrYVNazqe2VvdEI 2K7MNSYfT0u3X6LYtNMnTXA8BVnPtp+iLuCAghif+dLGSUBlsHJUBcI06Y4zR72I7KAC J4mXvLhQD3fS8spfAREZpd4ETy0UL+Bs2J0Wgx0gd03oHndbwzpJMy/IiUlgXrjxM5hV P0EUahCcvdUzcgq80T60a+MoGEudtzd7UV7bBubEWzHRYgSSBF6JQWXL/ABnd16XFKez y+rA== X-Gm-Message-State: AOAM530BFjU0pkYLGwdSABsfHSKs+mfnVC0QQOSdxcqEqVpsxp0HL+vv 3v4TXl5P9EpMCMt0Y21+LLWTigjP6Y0= X-Received: by 2002:a2e:a0d0:: with SMTP id f16mr1679862ljm.215.1616176567012; Fri, 19 Mar 2021 10:56:07 -0700 (PDT) Received: from [192.168.2.145] (109-252-193-52.dynamic.spd-mgts.ru. [109.252.193.52]) by smtp.googlemail.com with ESMTPSA id e8sm855367ljg.22.2021.03.19.10.56.06 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Fri, 19 Mar 2021 10:56:06 -0700 (PDT) Subject: Re: [PATCH v4] mm: cma: support sysfs To: Minchan Kim Cc: Greg Kroah-Hartman , Andrew Morton , linux-mm , LKML , joaodias@google.com, willy@infradead.org, david@redhat.com, surenb@google.com, John Hubbard , Nicolas Chauvet , "linux-tegra@vger.kernel.org" References: <33ec18ef-8652-643a-1a53-ff7c3caf4399@gmail.com> <78883205-e6da-5bc4-dcec-b6eb921567b1@gmail.com> <72db59eb-75dc-d1ed-7a83-17052e8f22a8@gmail.com> From: Dmitry Osipenko Message-ID: <071c6681-f492-2c94-5686-30c30778f39d@gmail.com> Date: Fri, 19 Mar 2021 20:56:06 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.8.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 19.03.2021 19:30, Minchan Kim пишет: > +static void cma_kobj_release(struct kobject *kobj) > +{ > + struct cma_kobject *cma_kobj = container_of(kobj, struct cma_kobject, kobj); > + > + kfree(cma_kobj); > +} Oh, wait.. I think this kfree wrong since cma_kobj belongs to the array.