[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]

[Cluster-devel] cluster/dlm-kernel/src device.c

CVSROOT:	/cvs/cluster
Module name:	cluster
Branch: 	RHEL46
Changes by:	pcaulfield sourceware org	2007-10-09 07:24:12

Modified files:
	dlm-kernel/src : device.c 

Log message:
	Only update castparam if it's non-NULL.


--- cluster/dlm-kernel/src/Attic/device.c	2007/09/26 13:53:20
+++ cluster/dlm-kernel/src/Attic/device.c	2007/10/09 07:24:12
@@ -1075,10 +1075,10 @@
 	   the existing li_castaddr as that's the completion routine for
 	   unlocks. dlm_unlock_wait() specifies a new AST routine to be
 	   executed when the unlock completes. */
-	if (kparams->castaddr) {
+	if (kparams->castaddr)
 		li->li_castaddr = kparams->castaddr;
+	if (kparams->castparam)
 		li->li_castparam = kparams->castparam;
-	}
 	/* Have to do it here cos the lkb may not exist after
 	 * dlm_unlock() */

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]