linux/drivers/clk/versatile
Dan Carpenter 479ffa4481 clk: vexpress: NULL dereference on error path
commit 6b4ed8b00e upstream.

If the allocation fails then we dereference the NULL in the error path.
Just return directly.

Fixes: ed27ff1db8 ('clk: Versatile Express clock generators ("osc") driver')
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Pawel Moll <pawel.moll@arm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
History 2014-06-07 10:28:19 -07:00
..
clk-icst.c clk: versatile: pass a name to ICST clock provider 2014-01-03 22:27:38 +01:00
clk-icst.h clk: versatile: pass a name to ICST clock provider 2014-01-03 22:27:38 +01:00
clk-impd1.c clk: versatile: fixup IM-PD1 clock implementation 2014-01-03 22:27:54 +01:00
clk-integrator.c clk: versatile: pass a name to ICST clock provider 2014-01-03 22:27:38 +01:00
clk-realview.c clk: versatile: pass a name to ICST clock provider 2014-01-03 22:27:38 +01:00
clk-sp810.c clk: versatile: Staticize clk_sp810_timerclken_of_get 2013-12-19 17:47:32 -08:00
clk-vexpress-osc.c clk: vexpress: NULL dereference on error path 2014-06-07 10:28:19 -07:00
clk-vexpress.c clk: add CLK_SET_RATE_NO_REPARENT flag 2013-08-19 12:27:17 -07:00
Makefile clk: vexpress: Add separate SP810 driver 2013-04-18 11:41:10 -07:00