hvc_console: Call free_irq() only if request_irq() was successful
authorMilton Miller <miltonm@bga.com>
Thu, 8 Jan 2009 02:14:21 +0000 (02:14 +0000)
committerBenjamin Herrenschmidt <benh@kernel.crashing.org>
Tue, 13 Jan 2009 03:48:01 +0000 (14:48 +1100)
commitc21f7a527f7757a0e246cea521a5dd3b8e1224d5
tree66c04f0e57daaf8109f54fdcb774ca51fe4a26de
parent9fef3d2d15ae8ca24e4a145f2e189eea145d18c2
hvc_console: Call free_irq() only if request_irq() was successful

Only call free_irq if we marked the request_irq has having succeeded
instead of whenever the the sub-driver identified the interrupt to use.

Signed-off-by: Milton Miller <miltonm@bga.com>
Signed-off-by: Benjamin Herrenschmidt <benh@kernel.crashing.org>
drivers/char/hvc_irq.c