Re: [ovs-dev] [PATCH 1/2] lacp: Ensure that mutex is initialized when used in lacp_status().

2014-04-28 Thread Ben Pfaff
Thanks, I applied these. On Fri, Apr 25, 2014 at 11:50:43AM -0700, Andy Zhou wrote: Looks great. Thanks! On Fri, Apr 25, 2014 at 9:56 AM, Ben Pfaff b...@nicira.com wrote: If 'lacp' is NULL, then lacp_create() might not have been called to indirectly initialize the mutex via lacp_init(),

[ovs-dev] [PATCH 1/2] lacp: Ensure that mutex is initialized when used in lacp_status().

2014-04-25 Thread Ben Pfaff
If 'lacp' is NULL, then lacp_create() might not have been called to indirectly initialize the mutex via lacp_init(), so call lacp_init() from lacp_status(). Signed-off-by: Ben Pfaff b...@nicira.com Acked-by: Andy Zhou az...@nicira.com --- lib/lacp.c | 18 +++--- 1 file changed, 11

Re: [ovs-dev] [PATCH 1/2] lacp: Ensure that mutex is initialized when used in lacp_status().

2014-04-25 Thread Andy Zhou
Looks great. Thanks! On Fri, Apr 25, 2014 at 9:56 AM, Ben Pfaff b...@nicira.com wrote: If 'lacp' is NULL, then lacp_create() might not have been called to indirectly initialize the mutex via lacp_init(), so call lacp_init() from lacp_status(). Signed-off-by: Ben Pfaff b...@nicira.com