mirror of
https://github.com/samba-team/samba.git
synced 2025-03-01 04:58:35 +03:00
We should avoid dereference 'struct share_mode_lock' as much as possible. In some places we just rely on share_mode_lock_access_private_data() to work, if needed the caller should already check it's result... Note that share_mode_lock_assert_private_data() can't fail up to now, but we want to change that in future and only load it on demand. BUG: https://bugzilla.samba.org/show_bug.cgi?id=15125 Signed-off-by: Stefan Metzmacher <metze@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>