[dpdk-stable] [PATCH v2] raw/ifpga_rawdev: fix fd leak in rte fpga do pr

Thomas Monjalon thomas at monjalon.net
Mon Apr 22 19:52:08 CEST 2019


> > In rte_fpga_do_pr() function, if 'stat' returns error,
> > rte_fpga_do_pr() returns -EINVAL without closing the 'file_fd' that has been
> > opened.
> > After this patch, 'file_fd' is closed before rte_fpga_do_pr() returns -EINVAL
> > when 'stat' returns error
> > 
> > Coverity issue: 279441
> > Fixes: ef1e8ede3da5 ("raw/ifpga: add Intel FPGA bus rawdev driver")
> > Cc: rosen.xu at intel.com
> > Cc: marko.kovacevic at intel.com
> > Cc: liq3ea at 163.com
> > Cc: andy.pei at intel.com
> > Cc: stable at dpdk.org
> > 
> > Signed-off-by: Andy Pei <andy.pei at intel.com>
> 
> Acked-by: Rosen Xu <rosen.xu at intel.com>

Li Qiang <liq3ea at 163.com> proposed the same patch.
Why he is not referenced here?
Which patch should I merge?





More information about the stable mailing list