Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
raw/ifpga: fix file descriptor leak in error path
[ upstream commit 194a83d ] In rte_fpga_do_pr() function, if 'stat' return error the 'file_fd' is never closed thus leading a fd leak. This patch avoids this. Coverity issue: 279441 Fixes: ef1e8ed ("raw/ifpga: add Intel FPGA bus rawdev driver") Signed-off-by: Li Qiang <liq3ea@163.com> Acked-by: Rosen Xu <rosen.xu@intel.com>
- Loading branch information