rdmacg: Fixed uninitialized current resource usage
authorParav Pandit <pandit.parav@gmail.com>
Tue, 10 Jan 2017 17:51:48 +0000 (17:51 +0000)
committerTejun Heo <tj@kernel.org>
Tue, 10 Jan 2017 17:52:32 +0000 (12:52 -0500)
commit7896dfb0a6180beb51bf34b32c9427984cb052c4
tree8e8a49aebc52e71158890029ba64738199a7dd32
parent9c1e67f941019907034d7e5584c891603cce2d8e
rdmacg: Fixed uninitialized current resource usage

Fixed warning reported by kbuild test robot.
When reading current resource usage value, when no resources are
allocated, its possible that it can report a uninitialized value
for current resource usage.
This fix avoids it by initializing it to zero as no resource is
allocated.

Signed-off-by: Parav Pandit <pandit.parav@gmail.com>
Signed-off-by: Tejun Heo <tj@kernel.org>
kernel/cgroup/rdma.c