media: staging: lirc_serial: Free resources on failure paths of lirc_serial_probe()
commit1632fb6031bb1510ec61a1540b348cf08640450c
authorBen Hutchings <ben@decadent.org.uk>
Wed, 16 Nov 2011 04:52:11 +0000 (16 01:52 -0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 12 Mar 2012 19:31:39 +0000 (12 12:31 -0700)
tree376677865d0bbec38c5f69375ea8af0b6ff67d94
parent06b267b55cddb826dca2cc3b5eacc4ca760696f3
media: staging: lirc_serial: Free resources on failure paths of lirc_serial_probe()

commit c8e57e1b766c2321aa76ee5e6878c69bd2313d62 upstream.

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>
Signed-off-by: Jonathan Nieder <jrnieder@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/media/lirc/lirc_serial.c