devfs - Fix broken assertion
commitfb12e9a5b3acecedcc888a0ad723826f184c8183
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 20 Oct 2010 16:45:19 +0000 (20 09:45 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Wed, 20 Oct 2010 16:45:19 +0000 (20 09:45 -0700)
tree0e17920954b32a8c57427f69ac0ba780a9c0baa1
parent5943b4b0afd5cbedc2877175b8fe5e02d052107e
devfs - Fix broken assertion

* When checking fp->f_flag against ap->a_mode both sides must be
  masked with FMASK.

* Fixes a panic which can occur when a unix domain socket is being
  garbage collected (FMARK set).
sys/vfs/devfs/devfs_vnops.c