lists.openwall.net   lists  /  announce  owl-users  owl-dev  john-users  john-dev  passwdqc-users  yescrypt  popa3d-users  /  oss-security  kernel-hardening  musl  sabotage  tlsify  passwords  /  crypt-dev  xvendor  /  Bugtraq  Full-Disclosure  linux-kernel  linux-netdev  linux-ext4  linux-hardening  linux-cve-announce  PHC 
Open Source and information security mailing list archives
 
Hash Suite: Windows password security audit tool. GUI, reports in PDF.
[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <462173384.277322.1679504530972.JavaMail.zimbra@nod.at>
Date:   Wed, 22 Mar 2023 18:02:10 +0100 (CET)
From:   Richard Weinberger <richard@....at>
To:     Yangtao Li <frank.li@...o.com>
Cc:     Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
        "Rafael J. Wysocki" <rafael@...nel.org>,
        Damien Le Moal <damien.lemoal@...nsource.wdc.com>,
        linux-mtd <linux-mtd@...ts.infradead.org>,
        linux-kernel <linux-kernel@...r.kernel.org>
Subject: Re: [PATCH v3 05/10] ubifs: convert to kobject_del_and_put()

----- Ursprüngliche Mail -----
> Von: "Yangtao Li" <frank.li@...o.com>
> An: "richard" <richard@....at>
> CC: "Yangtao Li" <frank.li@...o.com>, "Greg Kroah-Hartman" <gregkh@...uxfoundation.org>, "Rafael J. Wysocki"
> <rafael@...nel.org>, "Damien Le Moal" <damien.lemoal@...nsource.wdc.com>, "linux-mtd" <linux-mtd@...ts.infradead.org>,
> "linux-kernel" <linux-kernel@...r.kernel.org>
> Gesendet: Mittwoch, 22. März 2023 17:59:00
> Betreff: [PATCH v3 05/10] ubifs: convert to kobject_del_and_put()

> Use kobject_del_and_put() to simplify code.
> 
> Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>
> Cc: "Rafael J. Wysocki" <rafael@...nel.org>
> Cc: Damien Le Moal <damien.lemoal@...nsource.wdc.com>
> Signed-off-by: Yangtao Li <frank.li@...o.com>
> ---
> fs/ubifs/sysfs.c | 3 +--
> 1 file changed, 1 insertion(+), 2 deletions(-)
> 
> diff --git a/fs/ubifs/sysfs.c b/fs/ubifs/sysfs.c
> index 1c958148bb87..9571718e61a9 100644
> --- a/fs/ubifs/sysfs.c
> +++ b/fs/ubifs/sysfs.c
> @@ -130,8 +130,7 @@ int ubifs_sysfs_register(struct ubifs_info *c)
> 
> void ubifs_sysfs_unregister(struct ubifs_info *c)
> {
> -	kobject_del(&c->kobj);
> -	kobject_put(&c->kobj);
> +	kobject_del_and_put(&c->kobj);
> 	wait_for_completion(&c->kobj_unregister);

Acked-by: Richard Weinberger <richard@....at>

Thanks,
//richard

Powered by blists - more mailing lists

Powered by Openwall GNU/*/Linux Powered by OpenVZ