summaryrefslogtreecommitdiffstats
path: root/fs/quota
diff options
context:
space:
mode:
authorGreg Thelen <gthelen@google.com>2013-01-07 11:50:17 -0800
committerTejun Heo <tj@kernel.org>2013-01-08 10:00:44 -0800
commit799105d514384b80cbe3182dbcb4ed30aa07e1f5 (patch)
treea268f0a96609fb09408fb77fd5474489cbb63c76 /fs/quota
parent92e015b1cfc24e3cb072385f25171b8599cc7ef3 (diff)
downloadop-kernel-dev-799105d514384b80cbe3182dbcb4ed30aa07e1f5.zip
op-kernel-dev-799105d514384b80cbe3182dbcb4ed30aa07e1f5.tar.gz
cgroups: fix cgroup_event_listener error handling
The error handling in cgroup_event_listener.c did not correctly deal with either an error opening either <control_file> or cgroup.event_control. Due to an uninitialized variable the program exit code was undefined if either of these opens failed. This patch simplifies and corrects cgroup_event_listener.c error handling by: 1. using err*() rather than printf(),exit() 2. depending on process exit to close open files With this patch failures always return non-zero error. Signed-off-by: Greg Thelen <gthelen@google.com> Acked-by: Li Zefan <lizefan@huawei.com> Signed-off-by: Tejun Heo <tj@kernel.org>
Diffstat (limited to 'fs/quota')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud