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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 23 Feb 2022 11:00:57 +0000 (12:00 +0100)
commit7756716872990ef8173e226f689c5cf17528ebdb
tree3266e4b0d4255841a8af0d0afa91a7e426872c14
parentf8f519d7df66c334b5e08f896ac70ee3b53add3b
parisc: Fix sglist access in ccio-dma.c

commit d7da660cab47183cded65e11b64497d0f56c6edf upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/parisc/ccio-dma.c