From: Ray Jui Date: Mon, 29 Jun 2015 21:30:09 +0000 (-0700) Subject: clk: iproc: fix memory leak from clock name X-Git-Tag: omap-for-v4.3/legacy-v2-signed~12^2~11 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=45a481c2176f6acca2efb6477c6018b2c3e3c60f;p=pandora-kernel.git clk: iproc: fix memory leak from clock name of_property_read_string_index takes array of pointers and assign them to strings read from device tree property. No additional memory allocation is needed prior to calling of_property_read_string_index. In fact, since the array of pointers will be re-assigned to other strings, any memory that it points to prior to calling of_property_read_string_index will be leaked Reported-by: Dan Carpenter Signed-off-by: Ray Jui Fixes: 5fe225c105fd ("clk: iproc: add initial common clock support") Signed-off-by: Stephen Boyd --- Reading git-diff-tree failed