On Fri, Nov 18, 2016 at 4:02 PM, Geliang Tang wrote:
> 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().
Thanks,
On Fri, Nov 18, 2016 at 4:02 PM, Geliang Tang wrote:
> 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().
Thanks, applied.
Miklos
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
---
fs/overlayfs/super.c | 2 ++
1 file
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
---
fs/overlayfs/super.c | 2 ++
1 file changed, 2 insertions(+)
4 matches
Mail list logo