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 380173738a1d393378585ce94f7f99f22ca50248..6f33c1e89a147fc48b2b647cf33d16a843c68939 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);
 }