Skip to content

Commit

Permalink
V4L/DVB (13807): Fix: Free device in the device registration failure …
Browse files Browse the repository at this point in the history
…case

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Manu Abraham authored and Mauro Carvalho Chehab committed Jan 17, 2010
1 parent a149735 commit 1e42dc7
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/media/dvb/mantis/mantis_input.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 1e42dc7

Please sign in to comment.