aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb/mantis/mantis_input.c
diff options
context:
space:
mode:
authorManu Abraham <abraham.manu@gmail.com>2009-12-12 01:14:25 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-01-17 08:55:44 -0500
commit1e42dc78900e9d0ce89d77f3ba6aca00abd5f1b5 (patch)
treeb556ca223a2c3ce987a1ac9990fc4fdc7ae2e0f7 /drivers/media/dvb/mantis/mantis_input.c
parenta1497357dce240880d984f4b657b54245f739dbc (diff)
V4L/DVB (13807): Fix: Free device in the device registration failure case
Signed-off-by: Manu Abraham <manu@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/dvb/mantis/mantis_input.c')
-rw-r--r--drivers/media/dvb/mantis/mantis_input.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/media/dvb/mantis/mantis_input.c b/drivers/media/dvb/mantis/mantis_input.c
index 9395fcf4a453..b27d7759788b 100644
--- a/drivers/media/dvb/mantis/mantis_input.c
+++ b/drivers/media/dvb/mantis/mantis_input.c
@@ -129,6 +129,7 @@ int mantis_input_init(struct mantis_pci *mantis)
129 err = input_register_device(rc); 129 err = input_register_device(rc);
130 if (err) { 130 if (err) {
131 dprintk(MANTIS_ERROR, 1, "IR device registration failed, ret = %d", err); 131 dprintk(MANTIS_ERROR, 1, "IR device registration failed, ret = %d", err);
132 input_free_device(rc);
132 return -ENODEV; 133 return -ENODEV;
133 } 134 }
134 135