linux-stable/drivers/staging/kpc2000/kpc_dma
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
..
dma.c Staging: kpc2000: kpc_dma: Use the SPDK comment style. 2020-03-25 19:38:40 +01:00
fileops.c staging: kpc2000: kpc_dma: Remove additional goto statements 2020-07-01 15:44:26 +02:00
kpc_dma_driver.c staging: kpc2000: kpc_dma: set error code in probe 2020-06-25 15:40:27 +02:00
kpc_dma_driver.h Staging: kpc2000: kpc_dma: Remove comparison to NULL. 2020-03-25 19:38:39 +01:00
Makefile
uapi.h