From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by smtp.lore.kernel.org (Postfix) with ESMTP id AD198C43334 for ; Thu, 7 Jul 2022 13:38:09 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S235519AbiGGNiF (ORCPT ); Thu, 7 Jul 2022 09:38:05 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59598 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S235303AbiGGNiE (ORCPT ); Thu, 7 Jul 2022 09:38:04 -0400 Received: from verein.lst.de (verein.lst.de [213.95.11.211]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id AF3C92B613; Thu, 7 Jul 2022 06:38:03 -0700 (PDT) Received: by verein.lst.de (Postfix, from userid 2407) id DCD8768AA6; Thu, 7 Jul 2022 15:37:59 +0200 (CEST) Date: Thu, 7 Jul 2022 15:37:59 +0200 From: Christoph Hellwig To: Kirti Wankhede Cc: Christoph Hellwig , Tony Krowiak , Halil Pasic , Jason Herne , Eric Farman , Matthew Rosato , Zhenyu Wang , Zhi Wang , Alex Williamson , Jason Gunthorpe , kvm@vger.kernel.org, linux-s390@vger.kernel.org, intel-gvt-dev@lists.freedesktop.org, Tarun Gupta , Neo Jia , Shounak Deshpande Subject: Re: [PATCH 15/15] vfio/mdev: remove an extra parent kobject reference Message-ID: <20220707133759.GA19060@lst.de> References: <20220706074219.3614-1-hch@lst.de> <20220706074219.3614-16-hch@lst.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2007-11-01) Precedence: bulk List-ID: X-Mailing-List: linux-s390@vger.kernel.org On Wed, Jul 06, 2022 at 07:18:48PM +0530, Kirti Wankhede wrote: >> - kobject_put(&type->kobj); > > This kobject_put is required here in error case, see description above > kobject_init_and_add(). And they are completely unrelated anyway, this should have never slipped in.