From: Dan Carpenter Date: Thu, 7 Nov 2013 08:08:44 +0000 (+0000) Subject: clk: vexpress: NULL dereference on error path X-Git-Tag: omap-for-v3.16/pm-signed~52^2~1^2~3 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=6b4ed8b00e93bd31f24a25f59ed8d1b808d0cc00;p=pandora-kernel.git 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 Signed-off-by: Pawel Moll --- Reading git-diff-tree failed