iio:trigger: device_unregister->device_del to avoid double free
authorJonathan Cameron <jic23@kernel.org>
Sat, 22 Jun 2013 11:00:04 +0000 (12:00 +0100)
committerJonathan Cameron <jic23@kernel.org>
Sat, 29 Jun 2013 12:26:11 +0000 (13:26 +0100)
iio_trigger unregistration and freeing has been separated in this
code for some time, but it looks like the calls to the device
handling were not appropriately updated.

Signed-off-by: Jonathan Cameron <jic23@kernel.org>
Reported-by: Otavio Salvador <otavio@ossystems.com.br>
Tested-by: Otavio Salvador <otavio@ossystems.com.br>
Reviewed-by: Lars-Peter Clausen <lars@metafoo.de>
drivers/iio/industrialio-trigger.c

index 4d6c7d84e1552fb3564c224897c36f1923050b2e..ea8a4146620de5c6ad551644facb278654ab1c1c 100644 (file)
@@ -104,7 +104,7 @@ void iio_trigger_unregister(struct iio_trigger *trig_info)
 
        ida_simple_remove(&iio_trigger_ida, trig_info->id);
        /* Possible issue in here */
-       device_unregister(&trig_info->dev);
+       device_del(&trig_info->dev);
 }
 EXPORT_SYMBOL(iio_trigger_unregister);
 
This page took 0.026044 seconds and 5 git commands to generate.