Frank Filz has uploaded this change for review. (
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/541254 )
Change subject: STATE: When we have a grant cookie we need an obj reference
......................................................................
STATE: When we have a grant cookie we need an obj reference
The way cookie management works, we could wind up needing to release the
state lock but no longer have any obj references which would cause a use
after free.
Add apprpriate get_ref and put_ref to guard against this.
Change-Id: Ifad01b1ab8bce23195d23aff77043b5b835026ca
Signed-off-by: Frank S. Filz <ffilzlnx(a)mindspring.com>
---
M src/SAL/state_lock.c
1 file changed, 28 insertions(+), 4 deletions(-)
git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/54/541254/1
--
To view, visit
https://review.gerrithub.io/c/ffilz/nfs-ganesha/+/541254
To unsubscribe, or for help writing mail filters, visit
https://review.gerrithub.io/settings
Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-Change-Id: Ifad01b1ab8bce23195d23aff77043b5b835026ca
Gerrit-Change-Number: 541254
Gerrit-PatchSet: 1
Gerrit-Owner: Frank Filz <ffilzlnx(a)mindspring.com>
Gerrit-MessageType: newchange