[patch 3/9] dlm: don't free lvb twice

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

 



Don't free an rsb's lvb before calling free_rsb() because free_rsb() does
that.

Signed-off-by: David Teigland <[email protected]>

Index: linux/drivers/dlm/lockspace.c
===================================================================
--- linux.orig/drivers/dlm/lockspace.c	2005-06-02 12:28:30.000000000 +0800
+++ linux/drivers/dlm/lockspace.c	2005-06-02 12:55:58.290164152 +0800
@@ -460,10 +460,6 @@
 					 res_hashchain);
 
 			list_del(&rsb->res_hashchain);
-
-			if (rsb->res_lvbptr)
-				free_lvb(rsb->res_lvbptr);
-
 			free_rsb(rsb);
 		}
 
@@ -472,10 +468,6 @@
 			rsb = list_entry(head->next, struct dlm_rsb,
 					 res_hashchain);
 			list_del(&rsb->res_hashchain);
-
-			if (rsb->res_lvbptr)
-				free_lvb(rsb->res_lvbptr);
-
 			free_rsb(rsb);
 		}
 	}

--

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux