]> git.baikalelectronics.ru Git - kernel.git/commit
genirq: Fix memory leak when calling irq_free_hwirqs()
authorKeith Busch <keith.busch@intel.com>
Mon, 30 Jun 2014 22:24:44 +0000 (16:24 -0600)
committerThomas Gleixner <tglx@linutronix.de>
Sat, 5 Jul 2014 19:42:08 +0000 (21:42 +0200)
commitbb82e7e1c9c8586cae0a630faabc618ef749ff46
tree8517cee7ee48747ed7448eb14bfe81634695cca4
parente14911428764d8e09786f2c23d84b53d9124592d
genirq: Fix memory leak when calling irq_free_hwirqs()

irq_free_hwirqs() always calls irq_free_descs() with a cnt == 0
which makes it a no-op since the interrupt count to free is
decremented in itself.

Fixes: 0c727e15e8b5255fd5591bbf4f627bca661e09ab
Signed-off-by: Keith Busch <keith.busch@intel.com>
Acked-by: David Rientjes <rientjes@google.com>
Link: http://lkml.kernel.org/r/1404167084-8070-1-git-send-email-keith.busch@intel.com
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
kernel/irq/irqdesc.c