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.viz...@collabora.com> > Signed-off-by: Andy Shevchenko <andriy.shevche...@linux.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 majord...@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/