From owner-svn-src-head@FreeBSD.ORG Mon Feb 9 17:02:54 2009 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 71EF01065688; Mon, 9 Feb 2009 17:02:54 +0000 (UTC) (envelope-from fjoe@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 618CB8FC20; Mon, 9 Feb 2009 17:02:54 +0000 (UTC) (envelope-from fjoe@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n19H2sUH065876; Mon, 9 Feb 2009 17:02:54 GMT (envelope-from fjoe@svn.freebsd.org) Received: (from fjoe@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n19H2sdt065875; Mon, 9 Feb 2009 17:02:54 GMT (envelope-from fjoe@svn.freebsd.org) Message-Id: <200902091702.n19H2sdt065875@svn.freebsd.org> From: Max Khon Date: Mon, 9 Feb 2009 17:02:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r188395 - head/sys/cam X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Feb 2009 17:02:54 -0000 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); }