提交 8bade406 编写于 作者: J Jonathan Cameron

iio:trigger: device_unregister->device_del to avoid double free

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: NJonathan Cameron <jic23@kernel.org>
Reported-by: NOtavio Salvador <otavio@ossystems.com.br>
Tested-by: NOtavio Salvador <otavio@ossystems.com.br>
Reviewed-by: NLars-Peter Clausen <lars@metafoo.de>
上级 94fccb78
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册