[PATCH] fbdev cleanup

From: James A Simmons (jsimmons@acsu.buffalo.edu)
Date: Thu Jan 06 2000 - 21:31:26 EST


--- linux-2.3.37/drivers/video/fbmem.c Thu Jan 6 20:09:18 2000
+++ linux/drivers/video/fbmem.c Thu Jan 6 21:13:41 2000
@@ -432,7 +432,7 @@
         /* frame buffer memory */
         start = fix.smem_start;
         len = (start & ~PAGE_MASK)+fix.smem_len;
- len = (len+~PAGE_MASK) & PAGE_MASK; /* someone's on
crack. */
+ len = PAGE_ALIGN(len);
         if (off >= len) {
                 /* memory mapped io */
                 off -= len;

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Fri Jan 07 2000 - 21:00:08 EST