Skip site navigation (1)Skip section navigation (2)
Date:      Sun, 3 Jun 2007 10:56:23 +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/pcm dsp.c mixer.c sound.c
Message-ID:  <200706031056.l53AuNZD016111@repoman.freebsd.org>

next in thread | raw e-mail | index | archive | help
ariff       2007-06-03 10:56:23 UTC

  FreeBSD src repository

  Modified files:
    sys/dev/sound/pcm    dsp.c mixer.c sound.c 
  Log:
  Insert NULL pointer checking around devclass_get_maxunit(pcm_devclass, ..) .
  Things can get ugly without it due to uninitialized class. RELENG_6 need
  a simmilar, but different treatment as well.
  
  err.. perhaps we should teach devclass_get_maxunit() to return -1 ?
  
  MFC after:      1 day
  
  Revision  Changes    Path
  1.104     +2 -1      src/sys/dev/sound/pcm/dsp.c
  1.60      +2 -1      src/sys/dev/sound/pcm/mixer.c
  1.114     +8 -4      src/sys/dev/sound/pcm/sound.c



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