Sachin Punadikar has uploaded this change for review.

View Change

Set sbd_blocked_cookie correctly

In "state_add_grant_cookie", the sbd_blocked_cookie field
initialized in the begining. On failure of "do_lock_op", allocated
cookie is freed, but sbd_blocked_cookie value kept as is, leading
to double free condition. Also on freeing cookie, its entry from
hash table should be removed.

Change-Id: Ieabab40ffd06218b61d056541c0b08c297cd5dd4
Signed-off-by: Sachin Punadikar <psachin@in.ibm.com>
---
M src/SAL/state_lock.c
1 file changed, 9 insertions(+), 4 deletions(-)

git pull ssh://review.gerrithub.io:29418/ffilz/nfs-ganesha refs/changes/60/424260/1

To view, visit change 424260. To unsubscribe, or for help writing mail filters, visit settings.

Gerrit-Project: ffilz/nfs-ganesha
Gerrit-Branch: next
Gerrit-MessageType: newchange
Gerrit-Change-Id: Ieabab40ffd06218b61d056541c0b08c297cd5dd4
Gerrit-Change-Number: 424260
Gerrit-PatchSet: 1
Gerrit-Owner: Sachin Punadikar <psachin@in.ibm.com>