Chris Diamand
981d6435af
UPSTREAM: PM / devfreq: Don't delete sysfs group twice
...
The 'userspace' governor adds a sysfs entry, which is removed when
the governor is changed, or the devfreq device is released. However,
when the latter occurs via device_unregister(), device_del() is
called first, which removes the sysfs entries recursively and deletes
the kobject.
This means we get an Oops when the governor calls
sysfs_remove_group() on the deleted kobject. Fix this by only doing
the call when kobj *hasn't* been kobject_del()'d.
Note that we can't just remove the call to sysfs_remove_group()
entirely - it's needed for when the governor is changed to one which
doesn't need a sysfs entry.
Change-Id: I2ddad9d062ebb1a64582a15cd5b9efc5882bc848
Signed-off-by: Chris Diamand <chris.diamand@arm.com >
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com >
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com >
(cherry picked from commit 924b9111a1 )
Signed-off-by: Liang Chen <cl@rock-chips.com >
2018-07-10 16:40:19 +08:00
..
2018-07-06 20:12:54 +08:00
2018-01-31 20:56:06 +08:00
2018-05-02 07:53:42 -07:00
2018-06-04 20:16:28 +08:00
2018-07-06 20:12:54 +08:00
2018-05-16 10:06:52 +02:00
2018-07-06 10:21:14 +08:00
2018-02-28 14:55:00 +08:00
2018-05-30 07:49:13 +02:00
2018-07-06 20:12:54 +08:00
2018-04-13 19:50:05 +02:00
2018-05-30 07:49:13 +02:00
2018-06-16 09:54:24 +02:00
2018-01-31 20:56:06 +08:00
2018-07-06 20:12:54 +08:00
2018-07-06 20:12:54 +08:00
2018-01-31 20:56:06 +08:00
2018-07-06 20:12:54 +08:00
2018-06-11 16:48:21 +05:30
2018-07-06 20:12:54 +08:00
2018-07-10 16:40:19 +08:00
2018-07-06 20:12:54 +08:00
2017-08-15 18:43:45 +08:00
2018-04-13 19:50:23 +02:00
2017-12-01 11:04:13 +08:00
2018-05-30 07:48:52 +02:00
2018-07-06 20:12:54 +08:00
2018-07-06 20:12:54 +08:00
2018-07-10 09:14:56 +08:00
2018-01-31 20:56:06 +08:00
2018-07-06 20:12:54 +08:00
2018-03-24 10:58:42 +01:00
2018-02-25 11:03:46 +01:00
2018-07-06 20:12:54 +08:00
2018-06-11 16:23:40 +01:00
2018-07-06 20:12:54 +08:00
2018-05-30 07:49:13 +02:00
2018-02-25 11:03:51 +01:00
2018-07-06 20:12:54 +08:00
2018-05-30 07:49:05 +02:00
2018-07-06 20:12:54 +08:00
2018-07-06 20:12:54 +08:00
2018-07-06 20:12:54 +08:00
2018-06-13 16:15:28 +02:00
2018-06-04 20:16:28 +08:00
2017-11-17 14:55:40 +08:00
2018-06-11 16:48:21 +05:30
2018-07-09 15:26:44 +08:00
2017-12-16 10:33:51 +01:00
2018-05-30 07:48:58 +02:00
2018-06-19 08:51:10 +08:00
2018-07-06 20:12:54 +08:00
2018-07-06 20:12:54 +08:00
2018-06-04 20:16:28 +08:00
2018-07-06 20:12:54 +08:00
2018-04-08 18:28:30 +08:00
2018-05-30 07:48:55 +02:00
2017-11-30 08:37:23 +00:00
2018-07-06 20:12:54 +08:00
2018-06-13 14:16:35 +08:00
2018-04-08 18:28:30 +08:00
2018-05-30 07:49:10 +02:00
2018-04-08 11:52:00 +02:00
2018-07-06 20:12:54 +08:00
2018-04-08 18:28:30 +08:00
2018-07-09 11:06:14 +08:00
2018-05-16 15:22:24 +08:00
2018-07-06 20:12:54 +08:00
2018-06-21 18:14:51 +08:00
2018-04-13 19:50:05 +02:00
2018-03-24 10:58:40 +01:00
2018-06-27 11:17:33 +08:00
2018-07-06 20:12:54 +08:00
2018-07-06 15:28:57 +08:00
2018-07-10 16:38:48 +08:00
2018-07-06 20:12:54 +08:00
2018-05-30 07:49:00 +02:00
2018-06-12 11:54:49 +01:00
2018-01-31 20:56:06 +08:00
2018-07-06 19:38:51 +08:00
2018-07-06 20:12:54 +08:00
2017-07-27 15:06:10 -07:00
2018-02-25 11:03:44 +01:00
2018-07-06 20:12:54 +08:00
2018-01-31 20:56:06 +08:00
2018-03-24 10:58:45 +01:00
2018-03-05 21:58:40 +05:30
2018-01-31 20:56:06 +08:00
2018-07-06 19:36:38 +08:00
2018-04-24 09:32:07 +02:00
2018-07-10 14:46:01 +08:00
2018-07-06 20:12:54 +08:00
2017-10-12 11:27:35 +02:00
2018-04-24 09:32:09 +02:00
2018-04-13 19:50:25 +02:00
2018-07-06 20:12:54 +08:00
2018-02-25 11:03:42 +01:00
2018-07-06 20:12:54 +08:00
2018-05-30 07:49:09 +02:00
2018-05-30 07:49:11 +02:00
2018-05-23 09:26:14 +08:00
2018-05-23 09:26:14 +08:00