• Jeff Garzik's avatar
    [libata] fix bugs in ATAPI padding DMA mapping code · e1410f2d
    Jeff Garzik authored
    The ATAPI pad-to-next-32bit-boundary code modifies the scatterlist's
    length variable, sometimes to zero.  x86-64 platform would oops if a
    zero-length scatterlist entry was asked to be mapped.  Work around this
    by ensuring that we never DMA-map a zero length buffer or SG entry.
    e1410f2d
libata-core.c 120 KB