[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <54D2A8D7.6030806@codeaurora.org>
Date: Wed, 04 Feb 2015 15:18:47 -0800
From: Stephen Boyd <sboyd@...eaurora.org>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
linux-kernel@...r.kernel.org,
Mike Turquette <mturquette@...aro.org>,
Lee Jones <lee@...nel.org>,
Bryan Huntsman <bryanh@...eaurora.org>,
Lorenzo Pieralisi <lorenzo.pieralisi@....com>,
Ralf Baechle <ralf@...ux-mips.org>,
Sylwester Nawrocki <s.nawrocki@...sung.com>
CC: Tomeu Vizoso <tomeu.vizoso@...labora.com>
Subject: Re: [PATCH v1] clkdev: change prototype of clk_register_clkdev()
On 02/03/15 10:18, Andy Shevchenko wrote:
> Since clk_register_clkdev() is exported for modules the caller should get a
> pointer to the allocated resources. Otherwise the memory leak is guaranteed on
> the ->remove() stage.
>
> Cc: Tomeu Vizoso <tomeu.vizoso@...labora.com>
> Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
The idea seems ok to me. Please Cc Russell on the next version. It would
also be good to make a note that this patch doesn't attempt to fix any
memory leaks that may exist by adding calls to clkdev_drop().
--
Qualcomm Innovation Center, Inc. is a member of Code Aurora Forum,
a Linux Foundation Collaborative Project
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists