From: Kishon Vijay Abraham I Date: Fri, 20 Dec 2013 05:06:49 +0000 (+0530) Subject: phy: phy-core: increment refcounting variables only on 'success' X-Git-Tag: v3.14-rc1~152^2~5^2~2 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=637d378cea0b463c466a61a6564cdd541d689af5;p=pandora-kernel.git phy: phy-core: increment refcounting variables only on 'success' Increment 'init_count' only if the 'init' callback succeeded and decrement 'init_count' only if the 'exit' callback succeded. Increment 'power_count' only if 'power_on' callback succeded and if it failed disable the clocks using phy_pm_runtime_put_sync(). Also decrement 'power_count' only if 'power_off' callback succeded and if it failed do not disable the clocks. Reported-by: George Cherian Signed-off-by: Kishon Vijay Abraham I --- Reading git-diff-tree failed