Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 26 Jan 2009 14:21:00 +0000 (UTC)
From:      Konstantin Belousov <kib@FreeBSD.org>
To:        cvs-src-old@freebsd.org
Subject:   cvs commit: src/sys/fs/fifofs fifo_vnops.c
Message-ID:  <200901261421.n0QEL6Ea028338@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
kib         2009-01-26 14:21:00 UTC

  FreeBSD src repository

  Modified files:
    sys/fs/fifofs        fifo_vnops.c 
  Log:
  SVN rev 187715 on 2009-01-26 14:21:00Z by kib
  
  The kernel may do unbalanced calls to fifo_close() for fifo vnode,
  without corresponding number of fifo_open(). This causes assertion
  failure in fifo_close() due to vp->v_fifoinfo being NULL for kernel
  with INVARIANTS, or NULL pointer dereference otherwise. In fact, we may
  ignore excess calls to fifo_close() without bad consequences.
  
  Turn KASSERT() into the return, and print warning for now.
  
  Tested by:      pho
  Reviewed by:    rwatson
  MFC after:      2 weeks
  
  Revision  Changes    Path
  1.146     +4 -1      src/sys/fs/fifofs/fifo_vnops.c



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200901261421.n0QEL6Ea028338>