commit | 313684c48cc0e450ab303e1f82130ee2d0b50274 | [log] [tgz] |
---|---|---|
author | Geliang Tang <geliangtang@gmail.com> | Fri Nov 18 23:02:46 2016 +0800 |
committer | Miklos Szeredi <mszeredi@redhat.com> | Fri Dec 16 11:02:57 2016 +0100 |
tree | dad3e4f69bd80eea599675f79c41c26fa833f80e | |
parent | 32a3d848eb91a298334991f1891e12e0362f91db [diff] |
ovl: fix return value of ovl_fill_super If kcalloc() failed, the return value of ovl_fill_super() is -EINVAL, not -ENOMEM. So this patch sets this value to -ENOMEM before calling kcalloc(), and sets it back to -EINVAL after calling kcalloc(). Signed-off-by: Geliang Tang <geliangtang@gmail.com> Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>