lkml.org 
[lkml]   [2011]   [Nov]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    Patch in this message
    /
    From
    Subject[RFC 3/5] iomap: Don't ignore offset
    Date
    Offset was ignored for start calulcations, making all mappings start at
    offset 0 always.

    Signed-off-by: Sasha Levin <levinsasha928@gmail.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


    \
     
     \ /
      Last update: 2011-11-15 00:49    [W:0.039 / U:30.168 seconds]
    ©2003-2016 Jasper Spaans. hosted at Digital OceanAdvertise on this site