Souptick Joarder
fddd06f749
fpga: dfl: afu: Corrected error handling levels
...
[ Upstream commit c9d7e3da1f3c4cf5dddfc5d7ce4d76d013aba1cc ]
Corrected error handling goto sequnece. Level put_pages should
be called when pinned pages >= 0 && pinned != npages. Level
free_pages should be called when pinned pages < 0.
Fixes: fa8dda1edef9 ("fpga: dfl: afu: add DFL_FPGA_PORT_DMA_MAP/UNMAP ioctls support")
Signed-off-by: Souptick Joarder <jrdr.linux@gmail.com>
Acked-by: Wu Hao <hao.wu@intel.com>
Reviewed-by: Xu Yilun <yilun.xu@intel.com>
Link: https://lore.kernel.org/r/1589825991-3545-1-git-send-email-jrdr.linux@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2020-06-24 17:50:29 +02:00
..
2019-08-24 11:38:29 -07:00
2018-10-16 11:13:50 +02:00
2018-10-16 11:13:50 +02:00
2018-10-16 11:13:50 +02:00
2019-07-24 14:11:52 -07:00
2019-07-24 14:11:52 -07:00
2019-08-18 17:40:02 -07:00
2020-06-24 17:50:29 +02:00
2019-09-03 19:35:41 -07:00
2019-09-03 19:35:41 -07:00
2018-07-15 13:55:47 +02:00
2019-09-03 19:35:41 -07:00
2018-10-16 11:13:50 +02:00
2019-09-03 19:35:41 -07:00
2019-09-03 19:35:41 -07:00
2019-07-03 19:58:58 +02:00
2019-08-05 18:01:24 +02:00
2018-07-15 13:55:46 +02:00
2018-11-26 20:47:10 +01:00
2019-09-03 19:35:41 -07:00
2020-04-29 16:33:22 +02:00
2019-09-03 19:35:40 -07:00
2019-09-03 19:35:41 -07:00
2019-07-30 13:07:41 +02:00
2019-07-30 13:07:41 +02:00
2018-10-16 11:13:50 +02:00
2019-06-05 17:37:17 +02:00
2019-09-03 19:35:07 -07:00
2018-10-16 11:13:50 +02:00
2019-09-03 19:35:41 -07:00
2019-06-24 05:22:31 +02:00
2018-10-16 11:13:50 +02:00
2018-10-16 11:13:50 +02:00
2019-05-24 20:32:12 +02:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:36:37 +02:00
2019-06-05 17:37:15 +02:00
2019-06-05 17:36:37 +02:00
2019-05-30 07:56:11 -07:00