linux/drivers/clk/bcm
Ray Jui 45a481c217 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 <dan.carpenter@oracle.com>
Signed-off-by: Ray Jui <rjui@broadcom.com>
Fixes: 5fe225c105 ("clk: iproc: add initial common clock support")
Signed-off-by: Stephen Boyd <sboyd@codeaurora.org>
2015-07-02 09:50:26 -07:00
..
clk-bcm281xx.c clk: bcm281xx: move compatible string definitions 2014-04-30 11:51:39 -07:00
clk-bcm21664.c clk: bcm21664: use common clock framework 2014-04-30 11:51:44 -07:00
clk-cygnus.c clk: cygnus: add clock support for Broadcom Cygnus 2015-06-18 12:36:39 -07:00
clk-iproc-armpll.c clk: iproc: add initial common clock support 2015-06-18 12:36:38 -07:00
clk-iproc-asiu.c clk: iproc: fix memory leak from clock name 2015-07-02 09:50:26 -07:00
clk-iproc-pll.c clk: iproc: fix memory leak from clock name 2015-07-02 09:50:26 -07:00
clk-iproc.h clk: iproc: add initial common clock support 2015-06-18 12:36:38 -07:00
clk-kona-setup.c clk: bcm/kona: Remove ccu_list 2015-05-14 17:11:20 -07:00
clk-kona.c clk: bcm/kona: Silence sparse warnings 2015-05-14 17:11:19 -07:00
clk-kona.h clk: bcm/kona: Remove ccu_list 2015-05-14 17:11:20 -07:00
Kconfig clk: iproc: add initial common clock support 2015-06-18 12:36:38 -07:00
Makefile clk: cygnus: add clock support for Broadcom Cygnus 2015-06-18 12:36:39 -07:00