X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Fresource.c;h=f5b518eabefec5cfe880c230fe07ce7b8615f732;hb=96d6d72d4e6969dba026496917d82b311d74c3ca;hp=74af2d7cb5a135ffa1da4c52ce9af026c527044d;hpb=25a025863e024f6b86b48137b10b4960c50351b0;p=linux-2.6 diff --git a/kernel/resource.c b/kernel/resource.c index 74af2d7cb5..f5b518eabe 100644 --- a/kernel/resource.c +++ b/kernel/resource.c @@ -490,7 +490,7 @@ resource_size_t resource_alignment(struct resource *res) { switch (res->flags & (IORESOURCE_SIZEALIGN | IORESOURCE_STARTALIGN)) { case IORESOURCE_SIZEALIGN: - return res->end - res->start + 1; + return resource_size(res); case IORESOURCE_STARTALIGN: return res->start; default: