svn commit: r213011 - user/weongyo/usb/sys/dev/usb

Weongyo Jeong weongyo at FreeBSD.org
Wed Sep 22 19:12:23 UTC 2010


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));


More information about the svn-src-user mailing list