[media] sir_ir: attempt to free already free_irq
If the probe fails (e.g. port already in use), rmmod causes null deref. Signed-off-by: Sean Young <sean@mess.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
This commit is contained in:
parent
da731edb5b
commit
1beb5a7d1b
|
@ -381,6 +381,8 @@ static int sir_ir_probe(struct platform_device *dev)
|
||||||
|
|
||||||
static int sir_ir_remove(struct platform_device *dev)
|
static int sir_ir_remove(struct platform_device *dev)
|
||||||
{
|
{
|
||||||
|
drop_hardware();
|
||||||
|
drop_port();
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -421,8 +423,6 @@ static int __init sir_ir_init(void)
|
||||||
|
|
||||||
static void __exit sir_ir_exit(void)
|
static void __exit sir_ir_exit(void)
|
||||||
{
|
{
|
||||||
drop_hardware();
|
|
||||||
drop_port();
|
|
||||||
platform_device_unregister(sir_ir_dev);
|
platform_device_unregister(sir_ir_dev);
|
||||||
platform_driver_unregister(&sir_ir_driver);
|
platform_driver_unregister(&sir_ir_driver);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue