Thread: [Linux1394-cvslog] rev 710 - trunk
Brought to you by:
aeb,
bencollins
From: SVN U. <ano...@li...> - 2002-12-22 14:50:57
|
Author: anonymous Date: 2002-12-20 01:59:17 -0500 (Fri, 20 Dec 2002) New Revision: 710 Modified: trunk/dma.c Log: fix a very serious typo in dma.c page-rounding Modified: trunk/dma.c ============================================================================== --- trunk/dma.c (original) +++ trunk/dma.c 2002-12-22 09:50:25.000000000 -0500 @@ -26,7 +26,7 @@ { /* round up to page size */ if(n_bytes % PAGE_SIZE) - n_bytes += PAGE_SIZE - (n_bytes & PAGE_SIZE); + n_bytes += PAGE_SIZE - (n_bytes % PAGE_SIZE); prog->n_pages = n_bytes / PAGE_SIZE; @@ -71,7 +71,7 @@ /* round up to page size */ if(n_bytes % PAGE_SIZE) - n_bytes += PAGE_SIZE - (n_bytes & PAGE_SIZE); + n_bytes += PAGE_SIZE - (n_bytes % PAGE_SIZE); n_pages = n_bytes / PAGE_SIZE; |