Mercurial > illumos > illumos-gate
changeset 4086:5214f82452a7
6504670 panic, assertion failed: fraglist[siz] >= 0, file: ../../common/fs/ufs/ufs_subr.c, line: 1501
author | abalfour |
---|---|
date | Mon, 23 Apr 2007 12:50:31 -0700 |
parents | f5fd2bc7debd |
children | b986877655d2 |
files | usr/src/cmd/fs.d/ufs/fsck/pass5.c |
diffstat | 1 files changed, 3 insertions(+), 4 deletions(-) [+] |
line wrap: on
line diff
--- a/usr/src/cmd/fs.d/ufs/fsck/pass5.c Mon Apr 23 12:06:47 2007 -0700 +++ b/usr/src/cmd/fs.d/ufs/fsck/pass5.c Mon Apr 23 12:50:31 2007 -0700 @@ -1,5 +1,5 @@ /* - * Copyright 2006 Sun Microsystems, Inc. All rights reserved. + * Copyright 2007 Sun Microsystems, Inc. All rights reserved. * Use is subject to license terms. */ @@ -306,9 +306,8 @@ } if (bad_csum_cg && (update_csums == 1)) { - (void) memmove((void *)&cg->cg_cs, - (void *)&newcg->cg_cs, - sizeof (struct csum)); + (void) memmove((void *)cg, (void *)newcg, + (size_t)basesize); /* LINTED per cg_sanity() */ (void) memmove((void *)&cg_blktot(cg)[0], /* LINTED macro aligned as above */