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>
|
||
|---|---|---|
| .. | ||
| clk-icst.c | ||
| clk-icst.h | ||
| clk-impd1.c | ||
| clk-integrator.c | ||
| clk-realview.c | ||
| clk-sp810.c | ||
| clk-vexpress-osc.c | ||
| clk-vexpress.c | ||
| Makefile | ||