linux-sg2042/drivers/staging/kpc2000
Souptick Joarder 95154990a7 staging: kpc2000: kpc_dma: Remove additional goto statements
As 3 goto level referring to same common code, those can be
accomodated with a single goto level and renameing it to
unpin_pages. Set the -ERRNO when returning partial mapped
pages in more appropriate place.

When dma_map_sg() failed, the previously allocated memory was
not freed properly. This is corrected now.

Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Bharath Vedartham <linux.bhar@gmail.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/1593584264-16982-5-git-send-email-jrdr.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2020-07-01 15:44:26 +02:00
..
kpc2000 staging: kpc2000: fix error return code in kp2000_pcie_probe() 2020-05-13 14:00:20 +02:00
kpc_dma staging: kpc2000: kpc_dma: Remove additional goto statements 2020-07-01 15:44:26 +02:00
Kconfig Merge 5.2-rc3 into staging-next 2019-06-03 07:27:16 +02:00
Makefile staging: kpc2000: move the i2c driver out of its subdirectory 2019-05-21 08:14:18 +02:00
TODO staging: kpc2000: removed DMA AIO implementation. 2019-06-13 11:39:30 +02:00
kpc.h
kpc2000_i2c.c Staging/IIO patches for 5.6-rc1 2020-01-29 10:15:11 -08:00
kpc2000_spi.c staging: kpc2000: kpc2000_spi: Use new structure for SPI transfer delays 2020-03-10 10:51:20 +01:00