[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <1321314197-5265-4-git-send-email-levinsasha928@gmail.com>
Date: Tue, 15 Nov 2011 01:43:15 +0200
From: Sasha Levin <levinsasha928@...il.com>
To: linux-kernel@...r.kernel.org
Cc: mst@...hat.com, rusty@...tcorp.com.au,
virtualization@...ts.linux-foundation.org, kvm@...r.kernel.org,
penberg@...nel.org, mingo@...e.hu,
Sasha Levin <levinsasha928@...il.com>
Subject: [RFC 3/5] iomap: Don't ignore offset
Offset was ignored for start calulcations, making all mappings start at
offset 0 always.
Signed-off-by: Sasha Levin <levinsasha928@...il.com>
---
lib/iomap.c | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/lib/iomap.c b/lib/iomap.c
index f28720e..93ae915 100644
--- a/lib/iomap.c
+++ b/lib/iomap.c
@@ -272,6 +272,7 @@ void __iomem *pci_iomap_range(struct pci_dev *dev, int bar,
if (len <= offset || !start)
return NULL;
len -= offset;
+ start += offset;
if (len < minlen)
return NULL;
if (maxlen && len > maxlen)
--
1.7.8.rc1
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists