ovl: fix missing unlock_rename() in ovl_do_copy_up()
commit5820dc0888d302ac05f8b91ffdf7e4e53b4fbf53
authorAmir Goldstein <amir73il@gmail.com>
Mon, 25 Sep 2017 13:39:55 +0000 (25 16:39 +0300)
committerMiklos Szeredi <mszeredi@redhat.com>
Thu, 5 Oct 2017 13:53:18 +0000 (5 15:53 +0200)
treee22ae933b338fe9a51f34cef6658d82484aaff91
parentdc7ab6773e8171e07f16fd0df0c5eea28c899503
ovl: fix missing unlock_rename() in ovl_do_copy_up()

Use the ovl_lock_rename_workdir() helper which requires
unlock_rename() only on lock success.

Fixes: ("fd210b7d67ee ovl: move copy up lock out")
Cc: <stable@vger.kernel.org> # v4.13
Signed-off-by: Amir Goldstein <amir73il@gmail.com>
Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
fs/overlayfs/copy_up.c
fs/overlayfs/dir.c
fs/overlayfs/overlayfs.h
fs/overlayfs/util.c