From owner-cvs-all@FreeBSD.ORG Mon Jun 4 09:06:06 2007 Return-Path: X-Original-To: cvs-all@FreeBSD.org Delivered-To: cvs-all@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 63B7216A400; Mon, 4 Jun 2007 09:06:06 +0000 (UTC) (envelope-from ariff@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [69.147.83.41]) by mx1.freebsd.org (Postfix) with ESMTP id 2D9E813C480; Mon, 4 Jun 2007 09:06:06 +0000 (UTC) (envelope-from ariff@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.13.8/8.13.8) with ESMTP id l54966JK061498; Mon, 4 Jun 2007 09:06:06 GMT (envelope-from ariff@repoman.freebsd.org) Received: (from ariff@localhost) by repoman.freebsd.org (8.13.8/8.13.8/Submit) id l54966Nb061497; Mon, 4 Jun 2007 09:06:06 GMT (envelope-from ariff) Message-Id: <200706040906.l54966Nb061497@repoman.freebsd.org> From: Ariff Abdullah Date: Mon, 4 Jun 2007 09:06:05 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: RELENG_6 Cc: Subject: cvs commit: src/sys/dev/sound/pcm sound.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: CVS commit messages for the entire tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 04 Jun 2007 09:06:06 -0000 ariff 2007-06-04 09:06:05 UTC FreeBSD src repository Modified files: (Branch: RELENG_6) sys/dev/sound/pcm sound.c Log: MFC: Simmilar, but different treatment: Insert NULL pointer checking around devclass_get_maxunit(pcm_devclass, ..) . Things can get ugly without it due to uninitialized class. err.. perhaps we should teach devclass_get_maxunit() to return -1 ? Revision Changes Path 1.93.2.5 +2 -1 src/sys/dev/sound/pcm/sound.c