Skip to content
Unverified Commit 5b52aebe authored by Christian Brauner's avatar Christian Brauner Committed by Christian Brauner (Microsoft)
Browse files

ovl: call posix_acl_release() after error checking



The current placement of posix_acl_release() in ovl_set_or_remove_acl()
means it can be called on an error pointer instead of actual acls.
Fix this by moving the posix_acl_release() call after the error handling.

Fixes: 0e641857 ("ovl: implement set acl method") # mainline only
Reported-by: default avatar <syzbot+3f6ef1c4586bb6fd1f61@syzkaller.appspotmail.com>
Signed-off-by: default avatarChristian Brauner (Microsoft) <brauner@kernel.org>
parent 16257cf6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment