• Neil Horman's avatar
    3c59x: fix another page map/single unmap imbalance · 6e144419
    Neil Horman authored
    libdma debug found another page map/unmap imbalance in 3c59x.  Multi fragment
    frames are mapped such that the lead fragment was mapped as a single entry,
    while all other fragments were mapped as pages.  However, on unmapping they were
    all unmapped as pages.  Fix is pretty easy, just unmap the lead frag as a single
    entry, and bump the for loop initalization up by one so that all subsequent
    frags get unmapped as pages
    Signed-off-by: default avatarNeil Horman <nhorman@tuxdriver.com>
    CC: "David S. Miller" <davem@davemloft.net>
    CC: Steffen Klassert <klassert@mathematik.tu-chemnitz.de>
    Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
    6e144419
3c59x.c 104 KB