aboutsummaryrefslogtreecommitdiff
path: root/mm/madvise.c
diff options
context:
space:
mode:
authorGravatar Jiri Slaby (SUSE) <jirislaby@kernel.org> 2024-04-19 10:09:31 +0200
committerGravatar Greg Kroah-Hartman <gregkh@linuxfoundation.org> 2024-04-20 07:58:42 +0200
commitf70f95b485d78838ad28dbec804b986d11ad7bb0 (patch)
tree982e6d07ec1284c867dc079e0a11cd0f014b8bfe /mm/madvise.c
parentserial: exar: fix checkpach warnings (diff)
downloadlinux-f70f95b485d78838ad28dbec804b986d11ad7bb0.tar.gz
linux-f70f95b485d78838ad28dbec804b986d11ad7bb0.tar.bz2
linux-f70f95b485d78838ad28dbec804b986d11ad7bb0.zip
serial: msm: check dma_map_sg() return value properly
The -next commit f8fef2fa419f (tty: msm_serial: use dmaengine_prep_slave_sg()), switched to using dma_map_sg(). But the return value of dma_map_sg() is special: it returns number of elements mapped. And not a standard error value. The commit also forgot to reset dma->tx_sg in case of this failure. Fix both these mistakes. Thanks to Marek who helped debugging this. Signed-off-by: Jiri Slaby (SUSE) <jirislaby@kernel.org> Reported-by: Marek Szyprowski <m.szyprowski@samsung.com> Tested-by: Marek Szyprowski <m.szyprowski@samsung.com> Link: https://lore.kernel.org/r/20240419080931.30949-1-jirislaby@kernel.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'mm/madvise.c')
0 files changed, 0 insertions, 0 deletions