]> git.baikalelectronics.ru Git - kernel.git/commit
[media] rc: Fix invalid free_region and/or free_irq on probe failure
authorBen Hutchings <ben@decadent.org.uk>
Tue, 15 May 2012 00:36:00 +0000 (21:36 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 20 May 2012 14:43:05 +0000 (11:43 -0300)
commit84c98e492a63d0b8f4cc1e657bf181d9eee29e00
tree3ee3779961fb8356a54156fb472cb4a87ca9473f
parent9c008f7b390edfc2f9cf2c75e71481a4219d8c5e
[media] rc: Fix invalid free_region and/or free_irq on probe failure

fintek-cir, ite-cir and nuvoton-cir may try to free an I/O region
and/or IRQ handler that was never allocated after a failure in their
respective probe functions.  Add and use separate labels on the
failure path so they will do the right cleanup after each possible
point of failure.

Compile-tested only.

Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/rc/fintek-cir.c
drivers/media/rc/ite-cir.c
drivers/media/rc/nuvoton-cir.c