diff --git a/sound/oss/rme96xx.c b/sound/oss/rme96xx.c index 76774bbc143685138429c6fb6b895bee2bd886c7..b4278eecc9171dc0123809589249d236b4111b30 100644 --- a/sound/oss/rme96xx.c +++ b/sound/oss/rme96xx.c @@ -807,7 +807,7 @@ static void* busmaster_malloc(int size) { struct page* page, *last_page; page = virt_to_page(buf); - last_page = virt_to_page(buf + (1 << pg)); + last_page = page + (1 << pg); DBG(printk("setting reserved bit\n")); while (page < last_page) { SetPageReserved(page);