Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

vfs_fruit: Fix a leak of "br_lck" #66

Merged
merged 1 commit into from
Sep 5, 2018

Conversation

anodos325
Copy link

Fix a panic if fruit_access_check detects a locking conflict.

do_lock() returns a valid br_lck even in case of a locking conflict.
Not free'ing it leads to a invalid lock order panic later, because
"br_lck" corresponds to a dbwrap lock on brlock.tdb.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13584

Signed-off-by: Volker Lendecke vl@samba.org
Reviewed-by: Jeremy Allison jra@samba.org
(cherry picked from commit 51d5707)

Fix a panic if fruit_access_check detects a locking conflict.

do_lock() returns a valid br_lck even in case of a locking conflict.
Not free'ing it leads to a invalid lock order panic later, because
"br_lck" corresponds to a dbwrap lock on brlock.tdb.

BUG: https://bugzilla.samba.org/show_bug.cgi?id=13584

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Jeremy Allison <jra@samba.org>
(cherry picked from commit 51d5707)
@ghost ghost assigned anodos325 Sep 5, 2018
@ghost ghost added the review label Sep 5, 2018
@jhixson74 jhixson74 merged commit 1ac961d into freenas/11.1-stable Sep 5, 2018
@ghost ghost removed the review label Sep 5, 2018
@jhixson74 jhixson74 deleted the FIX-44625-STABLE branch September 5, 2018 23:30
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants