Michael Mesnier
-
2007-01-22
- status: open --> wont-fix
--- IntelLabs-v18-011603.orig/disk.c 2002-12-22
09:05:20.000000000 -0800
+++ IntelLabs-v18-011603/disk.c 2003-12-18
22:49:34.000000000 -0800
@@ -412,6 +412,7 @@
TRACE_ERROR("mmap() failed\n");
return -1;
}
+ ptr += extra;
#endif
// Have target do data transfer
@@ -434,7 +435,7 @@
}
#endif
#ifdef CONFIG_DISK_FS_MMAP
- if (munmap(ptr, num_bytes+extra)!=0) {
+ if (munmap(ptr-extra, num_bytes+extra)!=0) {
TRACE_ERROR("munmap() failed\n");
return -1;
}