Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 200194
Collapse All | Expand All

(-)eciadsl-usermode-0.11/pusb-linux.c.orig (-3 / +7 lines)
Lines 29-35 Link Here
29
#include <string.h>
29
#include <string.h>
30
30
31
#include "pusb-linux.h"
31
#include "pusb-linux.h"
32
#include <asm/page.h>
33
32
34
struct pusb_endpoint_t
33
struct pusb_endpoint_t
35
{
34
{
Lines 392-404 Link Here
392
{
391
{
393
	struct usbdevfs_bulktransfer bulk;
392
	struct usbdevfs_bulktransfer bulk;
394
	int ret, received = 0;
393
	int ret, received = 0;
394
	static long pagesize = 0;
395
	
396
	if (pagesize == 0)
397
		pagesize = sysconf(_SC_PAGESIZE);
398
		
395
399
396
	do
400
	do
397
    {
401
    {
398
		bulk.ep      = ep;
402
		bulk.ep      = ep;
399
		bulk.len     = size;
403
		bulk.len     = size;
400
		if (bulk.len > PAGE_SIZE)
404
		if (size > pagesize)
401
			bulk.len = PAGE_SIZE;
405
			bulk.len = pagesize;
402
		bulk.timeout = timeout;
406
		bulk.timeout = timeout;
403
		bulk.data    = buf;
407
		bulk.data    = buf;
404
408

Return to bug 200194