]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
wm831x_power: Fix off-by-one at free_irq()
authorTakeshi Yoshimura <yos@sslab.ics.keio.ac.jp>
Sun, 14 Jun 2015 11:55:18 +0000 (20:55 +0900)
committerSebastian Reichel <sre@kernel.org>
Mon, 15 Jun 2015 10:30:32 +0000 (12:30 +0200)
commit85a5965e1dc5473fd2ae5ff0cb071cfc597c3451
tree284ea1d8fc16662a4e7e81e597f2e7649748d3af
parent3d7f1800af0e4a781195770644fc1297217ba71d
wm831x_power: Fix off-by-one at free_irq()

An error handling in wm831x_power_probe() mistakenly frees a failed-to-
request irq as well as other irqs. I added missing decrement of the loop
counter.

Signed-off-by: Takeshi Yoshimura <yos@sslab.ics.keio.ac.jp>
Acked-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Signed-off-by: Sebastian Reichel <sre@kernel.org>
drivers/power/wm831x_power.c