mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-30 11:41:38 -04:00
V4L/DVB (13807): Fix: Free device in the device registration failure case
Signed-off-by: Manu Abraham <[email protected]> Signed-off-by: Mauro Carvalho Chehab <[email protected]>
This commit is contained in:
parent
a1497357dc
commit
1e42dc7890
1 changed files with 1 additions and 0 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue