Whamcloud - gitweb
git://git.whamcloud.com
/
fs
/
lustre-release.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5e33ea0
)
- remove pointer med_mcd on the freed mcd to avoid double free in client_del()
author
tappro
<tappro>
Mon, 25 Sep 2006 12:03:38 +0000
(12:03 +0000)
committer
tappro
<tappro>
Mon, 25 Sep 2006 12:03:38 +0000
(12:03 +0000)
lustre/mdt/mdt_handler.c
patch
|
blob
|
history
diff --git
a/lustre/mdt/mdt_handler.c
b/lustre/mdt/mdt_handler.c
index
b269625
..
f246dfe
100644
(file)
--- a/
lustre/mdt/mdt_handler.c
+++ b/
lustre/mdt/mdt_handler.c
@@
-3480,8
+3480,10
@@
static int mdt_obd_connect(const struct lu_context *ctx,
memcpy(mcd->mcd_uuid, cluuid, sizeof mcd->mcd_uuid);
med->med_mcd = mcd;
rc = mdt_client_new(ctx, mdt, med);
- if (rc != 0)
+ if (rc != 0)
{
OBD_FREE_PTR(mcd);
+ med->med_mcd = NULL;
+ }
} else
rc = -ENOMEM;
}