cardbus io reservation

front
cinap_lenrek 2012-05-01 03:35:15 +02:00
parent b20ed3c1f5
commit 656762ae98
1 changed files with 1 additions and 1 deletions

View File

@ -238,7 +238,7 @@ ioalloc(int port, int size, int align, char *tag)
m = *l; m = *l;
if(m->end <= port) if(m->end <= port)
continue; continue;
if(m->reserved && m->start == port && m->end == port + size) { if(m->reserved && m->start == port && m->end >= port + size) {
m->reserved = 0; m->reserved = 0;
unlock(&iomap); unlock(&iomap);
return m->start; return m->start;