lkml.org 
[lkml]   [2005]   [Jun]   [2]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
Patch in this message
/
Date
From
Subject[patch 3/9] dlm: don't free lvb twice
Don't free an rsb's lvb before calling free_rsb() because free_rsb() does
that.

Signed-off-by: David Teigland <teigland@redhat.com>

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 majordomo@vger.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/

\
 
 \ /
  Last update: 2005-06-02 10:08    [W:0.110 / U:9.956 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site