From: David Teigland <teigland@redhat.com>
To: akpm@osdl.org, linux-kernel@vger.kernel.org
Subject: [patch 3/9] dlm: don't free lvb twice
Date: Thu, 2 Jun 2005 16:02:38 +0800 [thread overview]
Message-ID: <20050602080238.GC21570@redhat.com> (raw)
[-- Attachment #1: double-free-lvb.patch --]
[-- Type: text/plain, Size: 774 bytes --]
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);
}
}
--
reply other threads:[~2005-06-02 8:01 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20050602080238.GC21570@redhat.com \
--to=teigland@redhat.com \
--cc=akpm@osdl.org \
--cc=linux-kernel@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox