From: Dan Carpenter Date: Wed, 5 Sep 2012 12:34:41 +0000 (+0300) Subject: da9052-battery: Don't free IRQ that wasn't requested X-Git-Tag: omap-for-v3.7-rc1/fixes-cpufreq-signed~5^2~32 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f4f95adf7caa9078e15c55407573208683dcb1b7;p=pandora-kernel.git da9052-battery: Don't free IRQ that wasn't requested We should decrement "i" before doing the free_irq(). If we call this because request_threaded_irq() failed then we don't want to free the thing which failed. Or in the case where we get here because power_supply_register() failed then the original codes does a read past the end of the array. Signed-off-by: Dan Carpenter Signed-off-by: Anton Vorontsov --- Reading git-diff-tree failed