Fix linux_ustat syscall. We only have cdevs now, so looking
for a block device isn't that useful anymore. Reported by: Wesley Morgan <morganw@chemicals.tacorp.com> Submitted by: gallatin Acknowledged by: phk
This commit is contained in:
parent
896fc61a66
commit
a4e130249f
@ -383,8 +383,8 @@ linux_ustat(p, uap)
|
||||
* dev_t returned from previous syscalls. Just return a bzeroed
|
||||
* ustat in that case.
|
||||
*/
|
||||
dev = makebdev(uap->dev >> 8, uap->dev & 0xFF);
|
||||
if (vfinddev(dev, VBLK, &vp)) {
|
||||
dev = makedev(uap->dev >> 8, uap->dev & 0xFF);
|
||||
if (vfinddev(dev, VCHR, &vp)) {
|
||||
if (vp->v_mount == NULL)
|
||||
return (EINVAL);
|
||||
stat = &(vp->v_mount->mnt_stat);
|
||||
|
Loading…
Reference in New Issue
Block a user