stm class: Fix a double free of stm_source_device
[linux-2.6-microblaze.git] / drivers / hwtracing / stm / core.c
index e55b902..181e7ff 100644 (file)
@@ -1276,7 +1276,6 @@ int stm_source_register_device(struct device *parent,
 
 err:
        put_device(&src->dev);
-       kfree(src);
 
        return err;
 }