devfs - Fix broken assertion
authorMatthew Dillon <dillon@apollo.backplane.com>
Wed, 20 Oct 2010 16:45:19 +0000 (09:45 -0700)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sun, 24 Oct 2010 16:33:27 +0000 (09:33 -0700)
commit714bf0f231d0e5d7a72cea8fb9e614963295a092
tree2b7279e3a3d7ffd6d21fef4d2f12c77a350bf79f
parent6f7504802c1a13544dfb6bc5dab2b9488a42c0be
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