summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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)
err = input_register_device(rc);
if (err) {
dprintk(MANTIS_ERROR, 1, "IR device registration failed, ret = %d", err);
+ input_free_device(rc);
return -ENODEV;
}