Help save net neutrality! Learn more.
Close

#1 ufsdisk_mmap data read/write error

closed
nobody
None
5
2007-01-22
2003-12-19
Anonymous
No

--- 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;
}

Discussion

  • Michael Mesnier

    Michael Mesnier - 2007-01-22
    • status: open --> wont-fix
     
  • Michael Mesnier

    Michael Mesnier - 2007-01-22
    • status: wont-fix --> open
     
  • Michael Mesnier

    Michael Mesnier - 2007-01-22
    • status: open --> closed
     

Log in to post a comment.