On Wed, Apr 25, 2018 at 10:56:41AM +0100, Anatoly Burakov wrote: > We were closing descriptor before checking if mapping has > failed, but if it did, we did a second close afterwards. Fix > it by moving closing descriptor to after we check if mmap has > succeeded. > > Coverity issue: 272560 > > Fixes: 2a04139f66b4 ("eal: add single file segments option") > Cc: anatoly.bura...@intel.com > > Signed-off-by: Anatoly Burakov <anatoly.bura...@intel.com> > --- Is a better fix not to assign fd to -1 after closing and then checking that in the error leg?
- [dpdk-dev] [PATCH v3 2/9] mem: fix resource leak Anatoly Burakov
- Re: [dpdk-dev] [PATCH v3 2/9] mem: fix resource leak Bruce Richardson
- [dpdk-dev] [PATCH v3 5/9] mem: fix potential resource lea... Anatoly Burakov
- Re: [dpdk-dev] [PATCH v3 5/9] mem: fix potential res... Bruce Richardson
- Re: [dpdk-dev] [PATCH v3 5/9] mem: fix potential... Burakov, Anatoly
- Re: [dpdk-dev] [PATCH v3 5/9] mem: fix poten... Bruce Richardson
- Re: [dpdk-dev] [PATCH v3 5/9] mem: fix potential... Burakov, Anatoly
- Re: [dpdk-dev] [PATCH v3 5/9] mem: fix poten... Bruce Richardson
- Re: [dpdk-dev] [PATCH v3 5/9] mem: fix p... Burakov, Anatoly
- [dpdk-dev] [PATCH v3 3/9] mem: fix potential double close Anatoly Burakov
- Re: [dpdk-dev] [PATCH v3 3/9] mem: fix potential dou... Bruce Richardson
- Re: [dpdk-dev] [PATCH v3 3/9] mem: fix potential... Burakov, Anatoly
- [dpdk-dev] [PATCH v3 6/9] mem: fix comparing pointer to v... Anatoly Burakov
- Re: [dpdk-dev] [PATCH v3 6/9] mem: fix comparing poi... Bruce Richardson
- [dpdk-dev] [PATCH v3 4/9] mem: fix potential resource lea... Anatoly Burakov
- Re: [dpdk-dev] [PATCH v3 4/9] mem: fix potential res... Bruce Richardson
- Re: [dpdk-dev] [PATCH v3 4/9] mem: fix potential... Burakov, Anatoly
- Re: [dpdk-dev] [PATCH v3 4/9] mem: fix potential... Burakov, Anatoly
- Re: [dpdk-dev] [PATCH v3 4/9] mem: fix poten... Bruce Richardson
- [dpdk-dev] [PATCH v3 8/9] mem: fix statement having no ef... Anatoly Burakov
- Re: [dpdk-dev] [PATCH v3 8/9] mem: fix statement hav... Bruce Richardson