diff options
-rw-r--r-- | security/device_cgroup.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/security/device_cgroup.c b/security/device_cgroup.c index 1be68269e1c2..4450fbeec411 100644 --- a/security/device_cgroup.c +++ b/security/device_cgroup.c | |||
@@ -125,14 +125,6 @@ static int dev_whitelist_add(struct dev_cgroup *dev_cgroup, | |||
125 | return 0; | 125 | return 0; |
126 | } | 126 | } |
127 | 127 | ||
128 | static void whitelist_item_free(struct rcu_head *rcu) | ||
129 | { | ||
130 | struct dev_whitelist_item *item; | ||
131 | |||
132 | item = container_of(rcu, struct dev_whitelist_item, rcu); | ||
133 | kfree(item); | ||
134 | } | ||
135 | |||
136 | /* | 128 | /* |
137 | * called under devcgroup_mutex | 129 | * called under devcgroup_mutex |
138 | */ | 130 | */ |
@@ -155,7 +147,7 @@ remove: | |||
155 | walk->access &= ~wh->access; | 147 | walk->access &= ~wh->access; |
156 | if (!walk->access) { | 148 | if (!walk->access) { |
157 | list_del_rcu(&walk->list); | 149 | list_del_rcu(&walk->list); |
158 | call_rcu(&walk->rcu, whitelist_item_free); | 150 | kfree_rcu(walk, rcu); |
159 | } | 151 | } |
160 | } | 152 | } |
161 | } | 153 | } |