diff options
| author | Souptick Joarder <jrdr.linux@gmail.com> | 2020-07-01 11:47:41 +0530 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-07-01 15:44:26 +0200 |
| commit | 63ed1e0287abcac9003e7b122badf546d66c9383 (patch) | |
| tree | a3ddabe5aa68fc140289d75af706c67f23df6268 /tools/perf/scripts/python | |
| parent | f9b468a3bd173ad3627ed99c6ba01eae0046c9be (diff) | |
| download | linux-63ed1e0287abcac9003e7b122badf546d66c9383.tar.gz linux-63ed1e0287abcac9003e7b122badf546d66c9383.zip | |
staging: kpc2000: kpc_dma: Unpin partial pinned pages
There is a bug, when get_user_pages() failed but partially pinned
pages are not unpinned and positive numbers are returned instead of
-ERRNO. Fixed it.
Also, int is more appropriate type for rv. Changed it.
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Cc: John Hubbard <jhubbard@nvidia.com>
Cc: Dan Carpenter <dan.carpenter@oracle.com>
Cc: Bharath Vedartham <linux.bhar@gmail.com>
Link: https://lore.kernel.org/r/1593584264-16982-2-git-send-email-jrdr.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions
