From owner-cvs-src@FreeBSD.ORG Sat Nov 13 05:00:12 2004 Return-Path: Delivered-To: cvs-src@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id CE5C116A4D0; Sat, 13 Nov 2004 05:00:12 +0000 (GMT) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id ADC2243D48; Sat, 13 Nov 2004 05:00:12 +0000 (GMT) (envelope-from marcel@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.11/8.12.11) with ESMTP id iAD50CSR065801; Sat, 13 Nov 2004 05:00:12 GMT (envelope-from marcel@repoman.freebsd.org) Received: (from marcel@localhost) by repoman.freebsd.org (8.12.11/8.12.11/Submit) id iAD50C2G065800; Sat, 13 Nov 2004 05:00:12 GMT (envelope-from marcel) Message-Id: <200411130500.iAD50C2G065800@repoman.freebsd.org> From: Marcel Moolenaar Date: Sat, 13 Nov 2004 05:00:12 +0000 (UTC) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/dev/md md.c X-BeenThere: cvs-src@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: CVS commit messages for the src tree List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 13 Nov 2004 05:00:12 -0000 marcel 2004-11-13 05:00:12 UTC FreeBSD src repository Modified files: sys/dev/md md.c Log: Fix the MDIOCDETACH ioctl() for md(4). Now that the md_file field in the mdio structure is an array and not a pointer, we cannot test for it to be NULL. It never is. Instead, test for md_file[0] to be '\0'. Revision Changes Path 1.145 +1 -1 src/sys/dev/md/md.c