]> git.baikalelectronics.ru Git - kernel.git/commit
ovl: fix return value of ovl_fill_super
authorGeliang Tang <geliangtang@gmail.com>
Fri, 18 Nov 2016 15:02:46 +0000 (23:02 +0800)
committerMiklos Szeredi <mszeredi@redhat.com>
Fri, 16 Dec 2016 10:02:57 +0000 (11:02 +0100)
commitf5fb0959775bf009ea49b93d999d8bb2107c6ef6
treedad3e4f69bd80eea599675f79c41c26fa833f80e
parent030214801f97129a2c0ef69f41b6a87d9fade5a2
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>
fs/overlayfs/super.c