[PATCH] Fix an assertion check

Anoop C S anoopcs at autistici.org
Fri Jul 27 06:47:05 UTC 2018


Hi,

Attached patch fixes the assertion check while reducing the lock reference count. If it is the right
thing to do we may also consider changing the assertion check while increasing the same lock
reference count inside increment_lock_ref_count():

SMB_ASSERT(lock_ref_count < (INT32_MAX - 1))

Also the DEBUG statement[inside increment_lock_ref_count() and decrement_lock_ref_count()] prints
the old reference count value instead of the new one.

Thanks,
Anoop C S.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-s3-locking-Fix-assertion-check-on-lock-reference-cou.patch
Type: text/x-patch
Size: 1091 bytes
Desc: not available
URL: <http://lists.samba.org/pipermail/samba-technical/attachments/20180727/d7045fce/0001-s3-locking-Fix-assertion-check-on-lock-reference-cou.bin>


More information about the samba-technical mailing list