PM / devfreq: fix double kfree
authorGeliang Tang <geliangtang@163.com>
Thu, 1 Oct 2015 14:18:19 +0000 (22:18 +0800)
committerChanwoo Choi <cw00.choi@samsung.com>
Mon, 4 Sep 2017 05:33:22 +0000 (14:33 +0900)
commitd4417ef3a09ea1d76d2620d06dfec04d29302abb
tree856dbf38400af84f16e130c2847f239de140bc9c
parent830e86ad4380258dabf97cb6aeba9bd584bc0fcb
PM / devfreq: fix double kfree

When device_register() fails, kfree(devfreq) is called already in
devfreq_dev_release(), hence there is no need to call kfree(devfreq)
in err_dev again.

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