Backports and a fix for the 3.1.3 branch.

. backports of various fixes already on the trunk
  . pass label of driver as argv[0], allowing the pci
    driver to free pci resources for it (solved differently
    on the trunk code), allowing pci drivers to be restarted
This commit is contained in:
Ben Gras
2007-05-01 13:29:50 +00:00
parent b015dae3e7
commit ccd02a6028
14 changed files with 56 additions and 55 deletions

View File

@@ -148,7 +148,8 @@ int safe; /* safe copies */
return EPERM;
}
if (ex64hi(pos64) != 0)
/* ZERO_DEV and NULL_DEV are infinite in size. */
if (m_device != ZERO_DEV && m_device != NULL_DEV && ex64hi(pos64) != 0)
return OK; /* Beyond EOF */
position= cv64ul(pos64);