James Hogan
903efc553f
clk: fix new_parent dereference before null check
...
Commit 71472c0 (clk: add support for clock reparent on set_rate) added a
dereference of the new_parent pointer in clk_reparent(), but as detected
by smatch clk_reparent() later checks whether new_parent is NULL.
The dereference was in order to clear the new parent's new_child pointer
to avoid duplicate POST_RATE_CHANGE notifications, so clearly isn't
necessary if the new parent is NULL, so move it inside the "if
(new_parent)" block.
Reported-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: James Hogan <james.hogan@imgtec.com>
Signed-off-by: Mike Turquette <mturquette@linaro.org>
2013-08-30 12:52:01 -07:00
..
mmp
clk: add CLK_SET_RATE_NO_REPARENT flag
2013-08-19 12:27:17 -07:00
mvebu
clk: kirkwood: Fix incorrect placement of __initconst
2013-08-27 18:35:19 -07:00
mxs
clk: add CLK_SET_RATE_NO_REPARENT flag
2013-08-19 12:27:17 -07:00
rockchip
clk: add support for Rockchip gate clocks
2013-06-20 15:58:27 -07:00
samsung
clk/exynos5420: assign dout_pixel id to pixel clock divider
2013-08-29 17:48:12 -07:00
socfpga
spear
clk: add CLK_SET_RATE_NO_REPARENT flag
2013-08-19 12:27:17 -07:00
sunxi
clk: sunxi: Fix incorrect placement of __initconst
2013-08-27 18:35:43 -07:00
tegra
clk: tegra30: Don't wait for PLL_U lock bit
2013-08-28 19:08:09 -07:00
ux500
The common clock framework changes for 3.11 include new clock drivers
2013-07-03 11:54:50 -07:00
versatile
clk: add CLK_SET_RATE_NO_REPARENT flag
2013-08-19 12:27:17 -07:00
x86
ACPI / LPSS: add support for Intel BayTrail
2013-06-19 01:08:47 +02:00
zynq
arm: Xilinx Zynq clock changes for v3.12
2013-08-20 14:58:48 -07:00
clk-axi-clkgen.c
clk-bcm2835.c
clk: bcm2835: Fix incorrect placement of __initconst
2013-08-27 18:32:24 -07:00
clk-composite.c
clk-devres.c
clk-divider.c
clk: wrap I/O access for improved portability
2013-08-27 17:50:38 -07:00
clk-fixed-factor.c
clk: export fixed-factor, gate & mux registration
2013-08-16 12:08:54 -07:00
clk-fixed-rate.c
clk: fixed-rate: Export clk_fixed_rate_register()
2013-08-16 12:08:50 -07:00
clk-gate.c
clk: wrap I/O access for improved portability
2013-08-27 17:50:38 -07:00
clk-highbank.c
clk-ls1x.c
clk-max77686.c
clk-mux.c
clk: wrap I/O access for improved portability
2013-08-27 17:50:38 -07:00
clk-nomadik.c
clk: nomadik: Fix incorrect placement of __initconst
2013-08-27 18:34:00 -07:00
clk-nspire.c
clk-ppc-corenet.c
clk-prima2.c
clk: prima2: Fix incorrect placement of __initdata
2013-08-08 22:35:21 -07:00
clk-s2mps11.c
clk: s2mps11: Add support for s2mps11
2013-08-08 15:57:33 -07:00
clk-si5351.c
The common clock framework changes for 3.11 include new clock drivers
2013-07-03 11:54:50 -07:00
clk-si5351.h
clk-twl6040.c
clk-u300.c
clk: u300: Fix incorrect placement of __initconst
2013-08-27 18:34:09 -07:00
clk-vt8500.c
The common clock framework changes for 3.11 include new clock drivers
2013-07-03 11:54:50 -07:00
clk-wm831x.c
clk: wm831x: Initialise wm831x pointer on init
2013-08-30 11:57:53 -07:00
clk.c
clk: fix new_parent dereference before null check
2013-08-30 12:52:01 -07:00
clkdev.c
Kconfig
clk: s2mps11: Add support for s2mps11
2013-08-08 15:57:33 -07:00
Makefile
clk: s2mps11: Add support for s2mps11
2013-08-08 15:57:33 -07:00