From owner-p4-projects@FreeBSD.ORG Mon Jun 9 10:44:18 2008 Return-Path: Delivered-To: p4-projects@freebsd.org Received: by hub.freebsd.org (Postfix, from userid 32767) id 9BBFD1065675; Mon, 9 Jun 2008 10:44:18 +0000 (UTC) Delivered-To: perforce@FreeBSD.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 57DC8106566C for ; Mon, 9 Jun 2008 10:44:18 +0000 (UTC) (envelope-from weongyo@FreeBSD.org) Received: from repoman.freebsd.org (repoman.freebsd.org [IPv6:2001:4f8:fff6::29]) by mx1.freebsd.org (Postfix) with ESMTP id 3FC858FC14 for ; Mon, 9 Jun 2008 10:44:18 +0000 (UTC) (envelope-from weongyo@FreeBSD.org) Received: from repoman.freebsd.org (localhost [127.0.0.1]) by repoman.freebsd.org (8.14.1/8.14.1) with ESMTP id m59AiIwC024393 for ; Mon, 9 Jun 2008 10:44:18 GMT (envelope-from weongyo@FreeBSD.org) Received: (from perforce@localhost) by repoman.freebsd.org (8.14.1/8.14.1/Submit) id m59AiHao024391 for perforce@freebsd.org; Mon, 9 Jun 2008 10:44:17 GMT (envelope-from weongyo@FreeBSD.org) Date: Mon, 9 Jun 2008 10:44:17 GMT Message-Id: <200806091044.m59AiHao024391@repoman.freebsd.org> X-Authentication-Warning: repoman.freebsd.org: perforce set sender to weongyo@FreeBSD.org using -f From: Weongyo Jeong To: Perforce Change Reviews Cc: Subject: PERFORCE change 143196 for review X-BeenThere: p4-projects@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: p4 projects tree changes List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 09 Jun 2008 10:44:18 -0000 http://perforce.freebsd.org/chv.cgi?CH=143196 Change 143196 by weongyo@weongyo_ws on 2008/06/09 10:43:52 fix a bug that it missed to set the status value of URB that it causes problems failing to attach at some NDIS drivers. Affected files ... .. //depot/projects/ndisusb/sys/compat/ndis/subr_usbd.c#3 edit Differences ... ==== //depot/projects/ndisusb/sys/compat/ndis/subr_usbd.c#3 (text+ko) ==== @@ -303,6 +303,11 @@ union usbd_urb *urb; urb = usbd_geturb(ip); + /* + * In a case of URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER, + * USBD_URB_STATUS(urb) would be set at callback functions like + * usbd_intr() or usbd_xfereof(). + */ switch (urb->uu_hdr.uuh_func) { case URB_FUNCTION_BULK_OR_INTERRUPT_TRANSFER: status = usbd_func_bulkintr(ip); @@ -316,6 +321,7 @@ case URB_FUNCTION_CLASS_ENDPOINT: case URB_FUNCTION_CLASS_OTHER: status = usbd_func_vendorclass(ip); + USBD_URB_STATUS(urb) = status; break; case URB_FUNCTION_SELECT_CONFIGURATION: status = usbd_func_selconf(ip);