projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
a149735
)
V4L/DVB (13807): Fix: Free device in the device registration failure case
author
Manu Abraham
<
[email protected]
>
Sat, 12 Dec 2009 06:14:25 +0000
(
03:14
-0300)
committer
Mauro Carvalho Chehab
<
[email protected]
>
Sun, 17 Jan 2010 13:55:44 +0000
(11:55 -0200)
Signed-off-by: Manu Abraham <
[email protected]
>
Signed-off-by: Mauro Carvalho Chehab <
[email protected]
>
drivers/media/dvb/mantis/mantis_input.c
patch
|
blob
|
history
diff --git
a/drivers/media/dvb/mantis/mantis_input.c
b/drivers/media/dvb/mantis/mantis_input.c
index 9395fcf4a453a2c9e4b7f81bf86f61c34137e29e..b27d7759788b28e32a5b696ca5f50d20772dc6e8 100644
(file)
--- 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;
}