diff options
author | 2015-01-06 12:52:13 +0800 | |
---|---|---|
committer | 2015-01-08 14:47:20 +0100 | |
commit | 2f83fd8c2849a388082f30d755a75c1e67c4643b (patch) | |
tree | 09ed1bd07d358487a7a7f3ed3ac863422c2eabdc /tools/perf/scripts/python/export-to-postgresql.py | |
parent | ovl: add testsuite to docs (diff) | |
download | wireguard-linux-2f83fd8c2849a388082f30d755a75c1e67c4643b.tar.xz wireguard-linux-2f83fd8c2849a388082f30d755a75c1e67c4643b.zip |
ovl: Fix kernel panic while mounting overlayfs
The function ovl_fill_super() in recently multi-layer support
version will incorrectly return 0 at error handling path and
then cause kernel panic.
This failure can be reproduced by mounting a overlayfs with
upperdir and workdir in different mounts.
And also, If the memory allocation of *lower_mnt* fail, this
function may return an zero either.
This patch fix this problem by setting *err* to proper error
number before jumping to error handling path.
Signed-off-by: hujianyang <hujianyang@huawei.com>
Signed-off-by: Miklos Szeredi <mszeredi@suse.cz>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions