From owner-cvs-all@FreeBSD.ORG Mon Dec 22 02:22:59 2003 Return-Path: Delivered-To: cvs-all@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 650DC16A4CE; Mon, 22 Dec 2003 02:22:59 -0800 (PST) Received: from repoman.freebsd.org (repoman.freebsd.org [216.136.204.115]) by mx1.FreeBSD.org (Postfix) with ESMTP id A108743D50; Mon, 22 Dec 2003 02:22:58 -0800 (PST) (envelope-from wpaul@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.12.10/8.12.10) with ESMTP id hBMAMw0B004775; Mon, 22 Dec 2003 02:22:58 -0800 (PST) (envelope-from wpaul@repoman.freebsd.org) Received: (from wpaul@localhost) by repoman.freebsd.org (8.12.10/8.12.10/Submit) id hBMAMwtj004774; Mon, 22 Dec 2003 02:22:58 -0800 (PST) (envelope-from wpaul) Message-Id: <200312221022.hBMAMwtj004774@repoman.freebsd.org> From: Bill Paul Date: Mon, 22 Dec 2003 02:22:58 -0800 (PST) To: src-committers@FreeBSD.org, cvs-src@FreeBSD.org, cvs-all@FreeBSD.org X-FreeBSD-CVS-Branch: HEAD Subject: cvs commit: src/sys/compat/ndis subr_ndis.c X-BeenThere: cvs-all@freebsd.org X-Mailman-Version: 2.1.1 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, 22 Dec 2003 10:22:59 -0000 wpaul 2003/12/22 02:22:58 PST FreeBSD src repository Modified files: sys/compat/ndis subr_ndis.c Log: Some minor touchups: In NdisQueryBuffer() and NdisQueryBufferSafe(), the vaddr argument is optional, so test it before trying to dereference it. Also correct NdisGetFirstBufferFromPacket()/NdisGetFirstBufferFromPacketSafe(): we need to use nb_mappedsystemva from the buffer, not nb_systemva. Revision Changes Path 1.10 +9 -4 src/sys/compat/ndis/subr_ndis.c