Received: by 2002:a25:8b91:0:0:0:0:0 with SMTP id j17csp562697ybl; Thu, 23 Jan 2020 03:57:47 -0800 (PST) X-Google-Smtp-Source: APXvYqy/eK9DPEjkYFOR2/zBILAiTjhRpKonnrT9DLfU8A69r3ibEC6CrJ0g42xrRc6vuziECjd3 X-Received: by 2002:a05:6830:1d7a:: with SMTP id l26mr10568260oti.138.1579780666895; Thu, 23 Jan 2020 03:57:46 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1579780666; cv=none; d=google.com; s=arc-20160816; b=RDRia/YTMwBqbGOIqAT7I0lIcq6mWk/aCEyVg164ux7M1tkcXu3qxxQt3ZPL9r9pG2 5lQFTtkIYUNiWY4Tp13VpvYSH3+ltOs/vS/JrxjJE1WmiVzgSiJir+5XSXJ9VY19hND3 d6InhCfWbFOonAdSy8t9qtVbJouk0kTGsMvPhwPTp433xMJGNqsLBlspciiQRNdOd0BY cLTI6+zEMV7uLPlV4Hkv4ODR7QNeJVp7rI3ksCzKO2+Rp1g5lz2rYSw3PQohcvBD7ruq VGvhl3PqB6/VqIkOpKD0+mnQ/jFaT8qDdRA8zUShl3dB6V8fz3QdpmNrtXEK8aBG9vBT 41Jg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date:dkim-signature; bh=wbXnjmrkqvBt6f4g6j+6Le954VeZ1mA97XslVwdtdqg=; b=Zw1ahqCge2Po7eaZ2EPAHyDii/O4Uv2b9TM44Q7nFuqK8tsFcpROBlZ+ivi8xwEg+F 3WQZNfwFwy3BWOOmVBGI8S80vQRVEaA2mK9znwbPiM6V8mORd8lQvrta+DXfh4g54ltB uXOHu/zCmRgKBP55JusmY7IN36XJJcXPNVpI66F5t9ZCGkrK4AMvN1xQPIfuIUA2vY/O AWTWKDg0+ZUsfvOcQ1xy+VMkuaxTI5/Ui/U9rqLh4dLPQK0IMhKaVKdwZuptvWo7Xn1g oGjjD8FT+77hBRdUhZb7wToo/AW8K35fvmEMHOZWgqNnO0FN3XMm6wyjddiVHo0j/qnV 10Kg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@linaro.org header.s=google header.b=eeNOlwR1; 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=linaro.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id r1si1003435otk.251.2020.01.23.03.57.35; Thu, 23 Jan 2020 03:57:46 -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=@linaro.org header.s=google header.b=eeNOlwR1; 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=linaro.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1726871AbgAWL4U (ORCPT + 99 others); Thu, 23 Jan 2020 06:56:20 -0500 Received: from mail-pf1-f195.google.com ([209.85.210.195]:38965 "EHLO mail-pf1-f195.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1726260AbgAWL4U (ORCPT ); Thu, 23 Jan 2020 06:56:20 -0500 Received: by mail-pf1-f195.google.com with SMTP id q10so1435987pfs.6 for ; Thu, 23 Jan 2020 03:56:20 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to:user-agent; bh=wbXnjmrkqvBt6f4g6j+6Le954VeZ1mA97XslVwdtdqg=; b=eeNOlwR1NX/QMY547bzl+w56Al8LOilLh8W0x1hv/8gE9ItFHudxm0o8XD56w5/yO0 c/kV+4LDt5rKEkmkQqJFSon43zKsJC5lGT5U8sETfXLsDF6Kz/ua0YIx6KjdcpJJz79t jFUQRTMTu56G6UsJ2/AfDh34SkOMDaYTwLaG4r48XpBSPWujVyToQ09gKNPeCR/J0zRq nEwu+b7p3G87N7cBTqW2YByQL18Pf49EmkjXse48C/NTwT5gzHLAjTvUXFX+Il8J3A+6 TwpXvU9QFaGkwwUavMyXiAAba964mbpwDFEDXv3C8uSfp1XsexD7nHUKo0VtJvIdRYa4 Zvjw== 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:references :mime-version:content-disposition:in-reply-to:user-agent; bh=wbXnjmrkqvBt6f4g6j+6Le954VeZ1mA97XslVwdtdqg=; b=uXjBFaBmlMn/QavyZ1NQW3LU1aWlbBJcr6GKyz7p1WQqgKy56Wg+PvBbZh4HibvSrA X5T0WnwvagIEio0QOCuIxk0th5WdqA1q1a4FeASQLL4wGRzmwA1Xc6fzY+1BXcjRU8UM LygTAEFBfsY8Rxrji8WQGNWUu2I5FIwAvkHWAHc8CyeOOKIVFJOb614BivIKguOFBTX8 xBAGL5O5/OpiEkN1NFiMFjIy334ufn5DR3kElQP4JuqxeoLbJbck71Q/gfH9N5wGrTXb 3uoHFIHhOOECG4A/9G3s+eS099lBFFeZrC4uEtxqFTL4jOidJm7NWvgDD1rHlJZB7TWb R6FQ== X-Gm-Message-State: APjAAAWNDl5ZbopBdrYtvGmqNyRVtT4B2z/BdemNb5W24Jeh2sG7DLm/ y7pabDkRS7VSlmnnkTC9Jdo2 X-Received: by 2002:a62:e511:: with SMTP id n17mr7073594pff.187.1579780579743; Thu, 23 Jan 2020 03:56:19 -0800 (PST) Received: from mani ([103.59.133.81]) by smtp.gmail.com with ESMTPSA id s18sm2496455pfh.179.2020.01.23.03.56.16 (version=TLS1_2 cipher=ECDHE-RSA-CHACHA20-POLY1305 bits=256/256); Thu, 23 Jan 2020 03:56:18 -0800 (PST) Date: Thu, 23 Jan 2020 17:26:11 +0530 From: Manivannan Sadhasivam To: Greg KH Cc: arnd@arndb.de, smohanad@codeaurora.org, jhugo@codeaurora.org, kvalo@codeaurora.org, bjorn.andersson@linaro.org, hemantk@codeaurora.org, linux-arm-msm@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/16] bus: mhi: core: Add support for registering MHI controllers Message-ID: <20200123115611.GA8937@mani> References: <20200123111836.7414-1-manivannan.sadhasivam@linaro.org> <20200123111836.7414-3-manivannan.sadhasivam@linaro.org> <20200123113342.GA976687@kroah.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20200123113342.GA976687@kroah.com> User-Agent: Mutt/1.9.4 (2018-02-28) Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Greg, On Thu, Jan 23, 2020 at 12:33:42PM +0100, Greg KH wrote: > On Thu, Jan 23, 2020 at 04:48:22PM +0530, Manivannan Sadhasivam wrote: > > +static inline void mhi_dealloc_device(struct mhi_controller *mhi_cntrl, > > + struct mhi_device *mhi_dev) > > +{ > > + kfree(mhi_dev); > > +} > > You just leaked memory, please read the documentation for > device_initialize(). > > :( Ah, okay. My bad. Should've used put_device(&mhi_dev->dev) here also to drop the ref count. Will add it in next iteration. Thanks, Mani