[media] staging: lirc_serial: Free resources on failure paths of lirc_serial_probe()
authorBen Hutchings <ben@decadent.org.uk>
Wed, 16 Nov 2011 04:52:11 +0000 (01:52 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 24 Nov 2011 20:17:30 +0000 (18:17 -0200)
commitc8e57e1b766c2321aa76ee5e6878c69bd2313d62
treee407c4ba1f325129d80ca30ebcdfab7271dc5195
parent9105b8b200410383d0854bbe237ee385d7d33ba6
[media] staging: lirc_serial: Free resources on failure paths of lirc_serial_probe()

Failure to allocate the I/O region leaves the IRQ allocated.
A later failure leaves them both allocated.

Reported-by: Torsten Crass <torsten.crass@eBiology.de>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/staging/media/lirc/lirc_serial.c