PM / devfreq: fix duplicated kfree on devfreq pointer
authorMyungJoo Ham <myungjoo.ham@samsung.com>
Fri, 2 Oct 2015 03:48:54 +0000 (12:48 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Wed, 22 Jun 2016 04:52:40 +0000 (13:52 +0900)
device_unregister() calls kfree already.

Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/devfreq.c

index 3801737..6f33c1e 100644 (file)
@@ -603,7 +603,6 @@ struct devfreq *devfreq_add_device(struct device *dev,
 err_init:
        list_del(&devfreq->node);
        device_unregister(&devfreq->dev);
-       kfree(devfreq);
 err_out:
        return ERR_PTR(err);
 }