From: Krzysztof Kozlowski Date: Wed, 13 May 2015 06:54:40 +0000 (+0900) Subject: clk: ti: dra7-atl-clock: Fix possible ERR_PTR dereference X-Git-Tag: omap-for-v4.3/legacy-v2-signed~79^2~18^2~60 X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=e0cdcda508f110b7ec190dc7c5eb2869ba73a535;p=pandora-kernel.git clk: ti: dra7-atl-clock: Fix possible ERR_PTR dereference of_clk_get_from_provider() returns ERR_PTR on failure. The dra7-atl-clock driver was not checking its return value and immediately used it in __clk_get_hw(). __clk_get_hw() dereferences supplied clock, if it is not NULL, so in that case it would dereference an ERR_PTR. Fixes: 9ac33b0ce81f ("CLK: TI: Driver for DRA7 ATL (Audio Tracking Logic)") Signed-off-by: Krzysztof Kozlowski Signed-off-by: Stephen Boyd --- Reading git-diff-tree failed