Date: Tue, 4 Apr 2006 17:32:49 +0000 (UTC) From: Ariff Abdullah <ariff@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: <200604041732.k34HWnVt078819@repoman.freebsd.org>
next in thread | raw e-mail | index | archive | help
ariff 2006-04-04 17:32:49 UTC
FreeBSD src repository
Modified files: (Branch: RELENG_6)
sys/dev/sound/pci csapcm.c
Log:
MFC (revision 1.37)
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: 483
Found with: Coverity Prevent(tm)
Approved by: re (scottl)
Revision Changes Path
1.34.2.2 +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?200604041732.k34HWnVt078819>
