OSDN Git Service

parisc: Fix sglist access in ccio-dma.c
authorJohn David Anglin <dave.anglin@bell.net>
Thu, 27 Jan 2022 22:33:41 +0000 (22:33 +0000)
committerHelge Deller <deller@gmx.de>
Fri, 28 Jan 2022 09:15:34 +0000 (10:15 +0100)
commitd7da660cab47183cded65e11b64497d0f56c6edf
tree53d3c9619e1242f821bc240409fbf5c9fc3f1db2
parentb7d6f44a0fa716a82969725516dc0b16bc7cd514
parisc: Fix sglist access in ccio-dma.c

This patch implements the same bug fix to ccio-dma.c as to sba_iommu.c.
It ensures that only the allocated entries of the sglist are accessed.

Signed-off-by: John David Anglin <dave.anglin@bell.net>
Cc: stable@vger.kernel.org
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/parisc/ccio-dma.c