cgroup: fix RCU related sparse warnings
authorTejun Heo <tj@kernel.org>
Tue, 27 Dec 2016 19:49:09 +0000 (14:49 -0500)
committerTejun Heo <tj@kernel.org>
Tue, 27 Dec 2016 19:49:09 +0000 (14:49 -0500)
commite0aed7c74f0bf6c643103f3a10ff988b7ee6545a
treeb35d04595b30594bf4d9fac4759d10a2570590e1
parentdcfe149b9f45aaf89bb95e8b314210da626417d9
cgroup: fix RCU related sparse warnings

kn->priv which is a void * is used as a RCU pointer by cgroup.  When
dereferencing it, it was passing kn->priv to rcu_derefreence() without
casting it into a RCU pointer triggering address space mismatch
warning from sparse.  Fix them.

Signed-off-by: Tejun Heo <tj@kernel.org>
Reported-by: Fengguang Wu <fengguang.wu@intel.com>
Acked-by: Acked-by: Zefan Li <lizefan@huawei.com>
kernel/cgroup/cgroup-v1.c
kernel/cgroup/cgroup.c