ACK.

On Tue, Jun 02, 2009 at 05:34:05PM +0200, Jan Friesse wrote:
> ---
>  trunk/lib/lck.c |   10 ++++++++++
>  1 files changed, 10 insertions(+), 0 deletions(-)
> 
> diff --git a/trunk/lib/lck.c b/trunk/lib/lck.c
> index f61d25e..1bb5420 100644
> --- a/trunk/lib/lck.c
> +++ b/trunk/lib/lck.c
> @@ -753,6 +753,11 @@ saLckResourceLock (
>       /* DEBUG */
>       printf ("[DEBUG]: saLckResourceLock\n");
>  
> +     if ((lockMode != SA_LCK_PR_LOCK_MODE) && (lockMode != 
> SA_LCK_EX_LOCK_MODE)) {
> +             error = SA_AIS_ERR_INVALID_PARAM;
> +             goto error_exit;
> +     }
> +
>       error = hdb_error_to_sa (hdb_handle_get (&lckResourceHandleDatabase,
>               lckResourceHandle, (void *)&lckResourceInstance));
>       if (error != SA_AIS_OK) {
> @@ -874,6 +879,11 @@ saLckResourceLockAsync (
>       /* DEBUG */
>       printf ("[DEBUG]: saLckResourceLockAsync\n");
>  
> +     if ((lockMode != SA_LCK_PR_LOCK_MODE) && (lockMode != 
> SA_LCK_EX_LOCK_MODE)) {
> +             error = SA_AIS_ERR_INVALID_PARAM;
> +             goto error_exit;
> +     }
> +
>       error = hdb_error_to_sa (hdb_handle_get (&lckResourceHandleDatabase,
>               lckResourceHandle, (void *)&lckResourceInstance));
>       if (error != SA_AIS_OK) {
> -- 
> 1.5.5.6
> 
> _______________________________________________
> 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