All of lore.kernel.org
 help / color / mirror / Atom feed
From: Lee Jones <lee.jones@linaro.org>
To: Laxman Dewangan <ldewangan@nvidia.com>
Cc: sameo@linux.intel.com, linux-kernel@vger.kernel.org, swarren@nvidia.com
Subject: Re: [PATCH 4/4] mfd: palmas: fix resource leak of i2c_dummy devices
Date: Fri, 27 Sep 2013 08:49:31 +0100	[thread overview]
Message-ID: <20130927074931.GC5100@lee--X1> (raw)
In-Reply-To: <1380202431-4868-5-git-send-email-ldewangan@nvidia.com>

On Thu, 26 Sep 2013, Laxman Dewangan wrote:

> Palmas device supports multiple i2c device address and the client
> for these addressed are created in the driver as i2c_new_dummy().
> 
> The new devices are not getting released in error or removal path and
> so it is causing resource leak.
> 
> Add the unregister of these newly created dummy devices to avoid resource
> leaks.
> 
> Signed-off-by: Laxman Dewangan <ldewangan@nvidia.com>
> ---
>  drivers/mfd/palmas.c |   21 +++++++++++++++------
>  1 files changed, 15 insertions(+), 6 deletions(-)

Patch looks sane.

>  no_irq:
>  	slave = PALMAS_BASE_TO_SLAVE(PALMAS_PU_PD_OD_BASE);
> @@ -552,7 +552,6 @@ no_irq:
>  		} else if (pdata->pm_off && !pm_power_off) {
>  			palmas_dev = palmas;
>  			pm_power_off = palmas_power_off;
> -			return ret;
>  		}
>  	}

Sneaky! ;)

Applied, thanks.

-- 
Lee Jones
Linaro STMicroelectronics Landing Team Lead
Linaro.org │ Open source software for ARM SoCs
Follow Linaro: Facebook | Twitter | Blog

      reply	other threads:[~2013-09-27  7:49 UTC|newest]

Thread overview: 9+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-09-26 13:33 [PATCH 0/4] mfd: palmas: fix the resource leak issue and cleanups Laxman Dewangan
2013-09-26 13:33 ` [PATCH 1/4] mfd: palmas: remove call of mfd_remove_devices Laxman Dewangan
2013-09-27  8:07   ` Lee Jones
2013-09-26 13:33 ` [PATCH 2/4] mfd: palmas: add MODULE_DEVICE_TABLE for of_device table Laxman Dewangan
2013-09-27  8:04   ` Lee Jones
2013-09-26 13:33 ` [PATCH 3/4] mfd: palmas: reset pm_power_off if it is set for the device Laxman Dewangan
2013-09-27  8:01   ` Lee Jones
2013-09-26 13:33 ` [PATCH 4/4] mfd: palmas: fix resource leak of i2c_dummy devices Laxman Dewangan
2013-09-27  7:49   ` Lee Jones [this message]

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20130927074931.GC5100@lee--X1 \
    --to=lee.jones@linaro.org \
    --cc=ldewangan@nvidia.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=sameo@linux.intel.com \
    --cc=swarren@nvidia.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.