From: David Teigland We're supposed to be checking a flag bit but the flags variable was missing. Signed-off-by: David Teigland Signed-off-by: Andrew Morton --- drivers/dlm/device.c | 2 +- 1 files changed, 1 insertion(+), 1 deletion(-) diff -puN drivers/dlm/device.c~dlm-device-interface-missing-variable drivers/dlm/device.c --- 25/drivers/dlm/device.c~dlm-device-interface-missing-variable Thu Jan 19 15:57:57 2006 +++ 25-akpm/drivers/dlm/device.c Thu Jan 19 15:57:57 2006 @@ -801,7 +801,7 @@ static int do_user_lock(struct file_info /* If this is a persistent lock we will have to create a lockinfo again */ - if (!li && DLM_LKF_PERSISTENT) { + if (!li && (kparams->flags & DLM_LKF_PERSISTENT)) { li = allocate_lockinfo(fi, cmd, kparams); li->li_lksb.sb_lkid = kparams->lkid; _