Received: by 10.223.164.202 with SMTP id h10csp2972397wrb; Fri, 24 Nov 2017 22:42:02 -0800 (PST) X-Google-Smtp-Source: AGs4zMZI10SuIwtArXQrNrzwFK/N6n3moFvAmSPEROGnfEkMa/OAJpX7oq66a+XVW3OydcNvD3eb X-Received: by 10.101.77.139 with SMTP id p11mr30073094pgq.286.1511592122882; Fri, 24 Nov 2017 22:42:02 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1511592122; cv=none; d=google.com; s=arc-20160816; b=wS3tCdHv1ThO/RzxXBTXcfCjZ4e/7inxTeFpjrYeSwXatqc+86GhyxR/u6TyDmUZyR UkGbLd0haLivTgI46A/3nqzXeR5hQkXrmw2LAjobwXEJFscZ4M75pI7tfOZgbX4RjCjQ cygSpqVUXsvFf3UB7EFYB2Nhdl3/tV+WWhvvaVdrYf40TXnfn7iKRm9ssupKOdcAs094 ndM9ikpHszf3sbhWt9viIQ0AnV38zQ0b1VjwaqXDYlzLwignSMjKZTBTSa1Z9TXqzuZl SKHd0etFfygSVwEwc0Sw3qtN5ZC/qUQlJsU7N6SWyxgvDxUYs0/jGgYPHP45s43HE320 Bwsw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:references:in-reply-to:message-id:date :subject:cc:to:from:dkim-signature:arc-authentication-results; bh=LKZmzNuAi5GkjI0l2rxDSlUXHPQ6YgQhM/H2Bt6/xt0=; b=ioaPPzd09RpKJvc+uUO5q5M017ma8BAg1VYVJDMUNi20ifDeP0HdGD8DaA2ToWDilR Rkq73nRjBwwcs6BmWW0pFeDEThvrk855V7kXRj3GyWLeBNfZmEh/3L/G2psDVvHQSurR U7vUbBhirvnItWYxYag7tYLpPvzyMHWsRSXxLeSCkjXHuWaSDnWaETecpZBdzTBrP0FD 7GPakrqkuZQPGMNwTjM1XEHacStR9Yw41L5SieXvT+jmZrXnXOV6XAtQ+CjWNlOzqQDe yl1jinVjcmqvHcWhSZ54TcGvNbeGbF1+6H0BsvUPJXt37F/UpFj/BQLmIF+K/n/yWrhf At2A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YrJIAxJf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id n17si19797880pgc.162.2017.11.24.22.41.51; Fri, 24 Nov 2017 22:42:02 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@gmail.com header.s=20161025 header.b=YrJIAxJf; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751453AbdKYGj6 (ORCPT + 78 others); Sat, 25 Nov 2017 01:39:58 -0500 Received: from mail-pg0-f66.google.com ([74.125.83.66]:44384 "EHLO mail-pg0-f66.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751375AbdKYGjw (ORCPT ); Sat, 25 Nov 2017 01:39:52 -0500 Received: by mail-pg0-f66.google.com with SMTP id c123so16512568pga.11; Fri, 24 Nov 2017 22:39:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id:in-reply-to:references; bh=LKZmzNuAi5GkjI0l2rxDSlUXHPQ6YgQhM/H2Bt6/xt0=; b=YrJIAxJf75nkrtLnyYtq3oMFPd0U7U0qhX30tvcn98ruegPVKuFbnAniBwfGZPLgsm iue8vmh251sdl5Gzsnl2C37llij9mOuVaPRx3/XG1ayOZs0wbWuhaRvY5yBI3GWu9eLi km4433R3ZBCR/3A5r25fNrz5c2NzKb/2BY2pXETKOpK2cMLVZAa07xhuvCWcqOU8HsJ0 hEMV85v7PZkYT9R9C3AMqwKszyEdlPYo9Urp+TLhH29NSNLEomlBPicqYvhBSz+zTvQS kRxtQK3gm2k5MhCDCPhaxOIlNZ3SLPFE+FG2mQC3DC/2HndzLa82hOsGMFtEqqhTsJHR RejA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references; bh=LKZmzNuAi5GkjI0l2rxDSlUXHPQ6YgQhM/H2Bt6/xt0=; b=GQswReWLgAAEfG/zWwO0MPb37VdqrPaKUm2Os9H/MmJXKgjMhMpL0IkPfGrIpykvDA eCXmT7XwWWO3hwmKGusELRfgWEQexfvfIiztdwVIz9JHX13IRUxOhoSSgvYsUykm0ocZ vf1o1pSf9pCoh4La1j55c437+OAwQnK2bt4TLG76rdOUThUlIvPDDZ4qs0e63ng4aNGE O4i0FjWJ96W+23tciUmZ1NGPyb/TKugOtRoWyM7+tfhLnv2BhT2O7ptM1GufX1N49PP4 +q0Sb+nfCJ14brBUk/nbxHiy0xOnu62Gpe0LmWvYDaLIpNtaBjN/GMUWQ+PyrVYI0FUk l9qw== X-Gm-Message-State: AJaThX58uPEmhwXaNl6sH3JOOkpCGdPF+ozKpQsDH7BXe0odi/Ja2lfC 3DhOAlRsSRZPrbM3tqmWBXU= X-Received: by 10.101.93.140 with SMTP id f12mr30199757pgt.60.1511591991711; Fri, 24 Nov 2017 22:39:51 -0800 (PST) Received: from localhost.localdomain ([103.16.68.147]) by smtp.gmail.com with ESMTPSA id 62sm34027939pgh.31.2017.11.24.22.39.47 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Fri, 24 Nov 2017 22:39:51 -0800 (PST) From: Arvind Yadav To: gilad@benyossef.com, gregkh@linuxfoundation.org, oleg.drokin@intel.com, andreas.dilger@intel.com, jsimmons@infradead.org, paulmck@linux.vnet.ibm.com, vitaly_fertman@xyratex.com, yawei.niu@intel.com Cc: linux-kernel@vger.kernel.org, linux-crypto@vger.kernel.org, driverdev-devel@linuxdriverproject.org, devel@driverdev.osuosl.org, lustre-devel@lists.lustre.org Subject: [PATCH 1/4] staging: ccree: Remove a attribute group from a kobject Date: Sat, 25 Nov 2017 12:09:28 +0530 Message-Id: <1511591971-8615-2-git-send-email-arvind.yadav.cs@gmail.com> X-Mailer: git-send-email 2.7.4 In-Reply-To: <1511591971-8615-1-git-send-email-arvind.yadav.cs@gmail.com> References: <1511591971-8615-1-git-send-email-arvind.yadav.cs@gmail.com> Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org All attribute group created during sys_init_dir() should be removed in sys_free_dir() Signed-off-by: Arvind Yadav --- drivers/staging/ccree/ssi_sysfs.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/drivers/staging/ccree/ssi_sysfs.c b/drivers/staging/ccree/ssi_sysfs.c index 5d39f15..14a3f32 100644 --- a/drivers/staging/ccree/ssi_sysfs.c +++ b/drivers/staging/ccree/ssi_sysfs.c @@ -145,8 +145,11 @@ static void sys_free_dir(struct sys_dir *sys_dir) kfree(sys_dir->sys_dir_attr_list); - if (sys_dir->sys_dir_kobj) + if (sys_dir->sys_dir_kobj) { + sysfs_remove_group(sys_dir->sys_dir_kobj, + &sys_dir->sys_dir_attr_group); kobject_put(sys_dir->sys_dir_kobj); + } } int ssi_sysfs_init(struct kobject *sys_dev_obj, struct ssi_drvdata *drvdata) -- 2.7.4 From 1585067762404464126@xxx Sat Nov 25 19:33:34 +0000 2017 X-GM-THRID: 1585067762404464126 X-Gmail-Labels: Inbox,Category Forums,HistoricalUnread