via: direction bug in get_user_pages call in via_dmablit.c fixed. Bumped
authorThomas Hellstrom <unichrome@shipmail.org>
Thu, 12 Jan 2006 19:08:16 +0000 (19:08 +0000)
committerThomas Hellstrom <unichrome@shipmail.org>
Thu, 12 Jan 2006 19:08:16 +0000 (19:08 +0000)
    minor since this causes the via DDX to fail with vlc video player.

linux-core/via_dmablit.c
shared-core/via_drv.h

index e1295cf..9e2f100 100644 (file)
@@ -237,7 +237,8 @@ via_lock_all_dma_pages(drm_via_sg_info_t *vsg,  drm_via_dmablit_t *xfer)
        memset(vsg->pages, 0, sizeof(struct page *) * vsg->num_pages);
        down_read(&current->mm->mmap_sem);
        ret = get_user_pages(current, current->mm, (unsigned long) xfer->mem_addr,
-                            vsg->num_pages, vsg->direction, 0, vsg->pages, NULL);
+                            vsg->num_pages, (vsg->direction == DMA_FROM_DEVICE), 
+                            0, vsg->pages, NULL);
 
        up_read(&current->mm->mmap_sem);
        if (ret != vsg->num_pages) {
index ae8b0d1..11a6116 100644 (file)
 
 #define DRIVER_NAME            "via"
 #define DRIVER_DESC            "VIA Unichrome / Pro"
-#define DRIVER_DATE            "20060106"
+#define DRIVER_DATE            "20060111"
 
 #define DRIVER_MAJOR           2
-#define DRIVER_MINOR           8
+#define DRIVER_MINOR           9
 #define DRIVER_PATCHLEVEL      0
 
 #include "via_verifier.h"