kernel - Fix bug in procfs_ioctl()
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 16 Nov 2011 18:58:32 +0000 (10:58 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 16 Nov 2011 18:58:32 +0000 (10:58 -0800)
* needed pfs_pfind() instead of pfind().

Reported-by: ftigeot
sys/vfs/procfs/procfs_vnops.c

index 0341077..d10bd5a 100644 (file)
@@ -280,7 +280,7 @@ procfs_ioctl(struct vop_ioctl_args *ap)
        struct procfs_status *psp;
        unsigned char flags;
 
-       procp = pfind(pfs->pfs_pid);
+       procp = pfs_pfind(pfs->pfs_pid);
        if (procp == NULL)
                return ENOTTY;
        p = curproc;