From 10800e2264e06e6a3a9b04fc26114cec989802d3 Mon Sep 17 00:00:00 2001 From: "robert.read" Date: Tue, 1 Dec 2009 20:32:24 +0000 Subject: [PATCH] Branch HEAD b=19669 i=nathan i=adilger Fix memcpy bug. --- lustre/osd/osd_handler.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lustre/osd/osd_handler.c b/lustre/osd/osd_handler.c index edda042..b21cac3 100644 --- a/lustre/osd/osd_handler.c +++ b/lustre/osd/osd_handler.c @@ -1803,7 +1803,7 @@ static int osd_ea_fid_get(const struct lu_env *env, struct osd_object *obj, if (rc > 0) { lustre_lma_swab(mdt_attrs); - memcpy(fid, &mdt_attrs->lma_self_fid, sizeof(*mdt_attrs)); + memcpy(fid, &mdt_attrs->lma_self_fid, sizeof(*fid)); rc = 0; } else if (rc == -ENODATA) { osd_igif_get(env, inode, fid); -- 1.8.3.1