Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 5 Feb 2006 17:33:18 +0000 (UTC)
From:      Alexander Leidinger <netchild@FreeBSD.org>
To:        src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org
Subject:   cvs commit: src/sys/dev/sound/pci csapcm.c
Message-ID:  <200602051733.k15HXIU8057339@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
netchild    2006-02-05 17:33:18 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/sound/pci    csapcm.c 
  Log:
  A pointer was checked for NULL after dereferencing it. The check is not
  needed here, except there's a bug which results in detaching the device
  twice.
  
  Move the NULL pointer check to the beginning of the function and convert
  it into a KASSERT.
  
  CID:            420
  Found with:     Coverity Prevent(tm)
  Discussed with: ariff
  MFC after:      5 days
  
  Revision  Changes    Path
  1.36      +4 -4      src/sys/dev/sound/pci/csapcm.c



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