looks good
regards
-steve
On Fri, 2009-06-26 at 12:11 -0500, Ryan O'Hara wrote:
> This patch moves the list_init calls in saLckResourceOpen and
> saLckResourceOpenAsync such that they occur before we send the request
> to the executive. This fix is really only required for the async call,
> but for consistency I changed the sync call as well.
> 
> The reason for this fix is that is is possible that the callback
> generated by the saLckResourceOpenAsync call could occur before we
> list_init the lists in the lckResourceInstance. There is an test in
> saftest (saLckDispatch/2-3.c) that calls saLckResourceClose in the
> open callback, and this requires that the lists be initialized to
> avoid a segfault.
> 
> Ryan
> 
> _______________________________________________
> Openais mailing list
> [email protected]
> https://lists.linux-foundation.org/mailman/listinfo/openais

_______________________________________________
Openais mailing list
[email protected]
https://lists.linux-foundation.org/mailman/listinfo/openais

Reply via email to