clk: vexpress: NULL dereference on error path
authorDan Carpenter <dan.carpenter@oracle.com>
Thu, 7 Nov 2013 08:08:44 +0000 (08:08 +0000)
committerPawel Moll <pawel.moll@arm.com>
Thu, 24 Apr 2014 10:39:06 +0000 (11:39 +0100)
commit6b4ed8b00e93bd31f24a25f59ed8d1b808d0cc00
tree2570de1eabab44273210e6d3e3bff4749f5840dd
parenta798c10faf62a505d24e5f6213fbaf904a39623f
clk: vexpress: NULL dereference on error path

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

Fixes: ed27ff1db869 ('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>
drivers/clk/versatile/clk-vexpress-osc.c