Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 22 Sep 2010 19:12:22 +0000 (UTC)
From:      Weongyo Jeong <weongyo@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-user@freebsd.org
Subject:   svn commit: r213011 - user/weongyo/usb/sys/dev/usb
Message-ID:  <201009221912.o8MJCMk8040011@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: weongyo
Date: Wed Sep 22 19:12:22 2010
New Revision: 213011
URL: http://svn.freebsd.org/changeset/base/213011

Log:
  Adds a assertion.

Modified:
  user/weongyo/usb/sys/dev/usb/usb_busdma.c

Modified: user/weongyo/usb/sys/dev/usb/usb_busdma.c
==============================================================================
--- user/weongyo/usb/sys/dev/usb/usb_busdma.c	Wed Sep 22 19:08:17 2010	(r213010)
+++ user/weongyo/usb/sys/dev/usb/usb_busdma.c	Wed Sep 22 19:12:22 2010	(r213011)
@@ -107,6 +107,8 @@ usbd_get_page(struct usb_page_cache *pc,
 			res->length = USB_PAGE_SIZE - offset;
 			res->physaddr = page[index].physaddr + offset;
 		} else {
+			USB_ASSERT(pc->npages == 1,
+			    ("multiple DMA segments without pc->ismultiseg"));
 			USB_ASSERT(page[index].physlen > offset0,
 			    ("wrong offset (%zd/ %d)", page[index].physlen,
 			    offset0));



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