diff options
| author | John Hubbard <jhubbard@nvidia.com> | 2019-03-04 22:46:45 +0300 | 
|---|---|---|
| committer | Jason Gunthorpe <jgg@mellanox.com> | 2019-03-04 23:41:31 +0300 | 
| commit | 75a3e6a3c129cddcc683538d8702c6ef998ec589 (patch) | |
| tree | c8a7e9d9cead3a5fee71218e74f8f1f64d4cad89 /drivers/fpga/altera-fpga2sdram.c | |
| parent | 4e69cf1fe2c52d189acdd06c1fd99cc258aba61f (diff) | |
| download | linux-75a3e6a3c129cddcc683538d8702c6ef998ec589.tar.xz | |
RDMA/umem: minor bug fix in error handling path
1. Bug fix: fix an off by one error in the code that cleans up if it fails
   to dma-map a page, after having done a get_user_pages_remote() on a
   range of pages.
2. Refinement: for that same cleanup code, release_pages() is better than
   put_page() in a loop.
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Signed-off-by: Ira Weiny <ira.weiny@intel.com>
Reviewed-by: Ira Weiny <ira.weiny@intel.com>
Acked-by: Leon Romanovsky <leonro@mellanox.com>
Signed-off-by: Jason Gunthorpe <jgg@mellanox.com>
Diffstat (limited to 'drivers/fpga/altera-fpga2sdram.c')
0 files changed, 0 insertions, 0 deletions
