Skip to content
Commit 0f9e2bf0 authored by Alexey Khoroshilov's avatar Alexey Khoroshilov Committed by Tyler Hicks
Browse files

ecryptfs: remove unneeded buggy code in ecryptfs_do_create()



There is a bug in error handling of lock_parent() in ecryptfs_do_create():
lock_parent() acquries mutex even if dget_parent() fails, so mutex should be unlocked anyway.

But dget_parent() does not fail, so the patch just removes unneeded buggy code.

Found by Linux Driver Verification project (linuxtesting.org).

Signed-off-by: default avatarAlexey Khoroshilov <khoroshilov@ispras.ru>
Signed-off-by: default avatarTyler Hicks <tyhicks@canonical.com>
parent 35425ea2
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