|
@@ -481,6 +481,8 @@ static void coresight_device_release(struct device *dev)
|
|
{
|
|
{
|
|
struct coresight_device *csdev = to_coresight_device(dev);
|
|
struct coresight_device *csdev = to_coresight_device(dev);
|
|
|
|
|
|
|
|
+ kfree(csdev->conns);
|
|
|
|
+ kfree(csdev->refcnt);
|
|
kfree(csdev);
|
|
kfree(csdev);
|
|
}
|
|
}
|
|
|
|
|
|
@@ -713,7 +715,6 @@ EXPORT_SYMBOL_GPL(coresight_register);
|
|
|
|
|
|
void coresight_unregister(struct coresight_device *csdev)
|
|
void coresight_unregister(struct coresight_device *csdev)
|
|
{
|
|
{
|
|
- kfree(csdev->conns);
|
|
|
|
device_unregister(&csdev->dev);
|
|
device_unregister(&csdev->dev);
|
|
}
|
|
}
|
|
EXPORT_SYMBOL_GPL(coresight_unregister);
|
|
EXPORT_SYMBOL_GPL(coresight_unregister);
|