diff options
author | 2012-09-05 15:34:41 +0300 | |
---|---|---|
committer | 2012-09-20 15:00:12 -0700 | |
commit | f4f95adf7caa9078e15c55407573208683dcb1b7 (patch) | |
tree | 7a3fb12a4ba8a36315c20c6a843c3b45463df189 /lib/spinlock_debug.c | |
parent | sbs-battery: Probe should try talking to the device (diff) | |
download | linux-dev-f4f95adf7caa9078e15c55407573208683dcb1b7.tar.xz linux-dev-f4f95adf7caa9078e15c55407573208683dcb1b7.zip |
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 <dan.carpenter@oracle.com>
Signed-off-by: Anton Vorontsov <anton.vorontsov@linaro.org>
Diffstat (limited to 'lib/spinlock_debug.c')
0 files changed, 0 insertions, 0 deletions