# HG changeset patch # User charles # Date 1227233852 0 # Node ID 9283fe91d449ee0609c48081464bbb25e9196ddc # Parent 94a1acb5152737c7a7772e1698495ef9fd8670ab Fix problem where duplicate object headers were not always being selected correctly due to not reading the serial number from the tags at the right place diff --git a/yaffs_guts.c b/yaffs_guts.c --- a/yaffs_guts.c +++ b/yaffs_guts.c @@ -5744,6 +5744,7 @@ static int yaffs_Scan(yaffs_Device * dev in->yst_rdev = oh->yst_rdev; #endif in->hdrChunk = chunk; + in->serial = tags.serialNumber; } else if (in && !in->valid) { /* we need to load this info */ @@ -5768,6 +5769,7 @@ static int yaffs_Scan(yaffs_Device * dev in->yst_rdev = oh->yst_rdev; #endif in->hdrChunk = chunk; + in->serial = tags.serialNumber; yaffs_SetObjectName(in, oh->name); in->dirty = 0;