Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 9 Feb 2009 17:02:54 +0000 (UTC)
From:      Max Khon <fjoe@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r188395 - head/sys/cam
Message-ID:  <200902091702.n19H2sdt065875@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: fjoe
Date: Mon Feb  9 17:02:54 2009
New Revision: 188395
URL: http://svn.freebsd.org/changeset/base/188395

Log:
  cam_periph_alloc: fix "invalid periph name" error condition
  
  Found with:	Coverity Prevent(tm)
  CID:		130

Modified:
  head/sys/cam/cam_periph.c

Modified: head/sys/cam/cam_periph.c
==============================================================================
--- head/sys/cam/cam_periph.c	Mon Feb  9 16:58:18 2009	(r188394)
+++ head/sys/cam/cam_periph.c	Mon Feb  9 17:02:54 2009	(r188395)
@@ -171,7 +171,7 @@ cam_periph_alloc(periph_ctor_t *periph_c
 			break;
 	}
 	xpt_unlock_buses();
-	if (p_drv == NULL) {
+	if (*p_drv == NULL) {
 		printf("cam_periph_alloc: invalid periph name '%s'\n", name);
 		return (CAM_REQ_INVALID);
 	}



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