diff options
author | Manu Abraham <abraham.manu@gmail.com> | 2009-12-12 03:14:25 -0300 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-01-17 11:55:44 -0200 |
commit | 1e42dc78900e9d0ce89d77f3ba6aca00abd5f1b5 (patch) | |
tree | b556ca223a2c3ce987a1ac9990fc4fdc7ae2e0f7 /drivers/media/dvb/mantis | |
parent | a1497357dce240880d984f4b657b54245f739dbc (diff) | |
download | op-kernel-dev-1e42dc78900e9d0ce89d77f3ba6aca00abd5f1b5.zip op-kernel-dev-1e42dc78900e9d0ce89d77f3ba6aca00abd5f1b5.tar.gz |
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')
-rw-r--r-- | drivers/media/dvb/mantis/mantis_input.c | 1 |
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 9395fcf..b27d775 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) err = input_register_device(rc); if (err) { dprintk(MANTIS_ERROR, 1, "IR device registration failed, ret = %d", err); + input_free_device(rc); return -ENODEV; } |