Re: [dpdk-dev] [PATCH] fbarray: fix uninitialized variable usage

2021-03-04 Thread David Marchand
On Fri, Feb 19, 2021 at 6:55 PM Anatoly Burakov wrote: > > When file truncation fails, the log message attempts to print a path of > file we failed to truncate, but this path was never set to anything and, > what's worse, was uninitialized. Fix it by passing path from the caller. > Coverity issue

Re: [dpdk-dev] [PATCH] fbarray: fix uninitialized variable usage

2021-03-03 Thread Andrew Boyer
> On Mar 3, 2021, at 3:17 AM, David Marchand wrote: > > On Fri, Feb 19, 2021 at 6:55 PM Anatoly Burakov > wrote: >> >> When file truncation fails, the log message attempts to print a path of >> file we failed to truncate, but this path was never set to anything and, >> what's worse, was unin

Re: [dpdk-dev] [PATCH] fbarray: fix uninitialized variable usage

2021-03-03 Thread David Marchand
On Wed, Mar 3, 2021 at 9:31 AM Andrew Rybchenko wrote: > > On 3/3/21 11:17 AM, David Marchand wrote: > > On Fri, Feb 19, 2021 at 6:55 PM Anatoly Burakov > > wrote: > >> > >> When file truncation fails, the log message attempts to print a path of > >> file we failed to truncate, but this path was

Re: [dpdk-dev] [PATCH] fbarray: fix uninitialized variable usage

2021-03-03 Thread Andrew Rybchenko
On 3/3/21 11:17 AM, David Marchand wrote: > On Fri, Feb 19, 2021 at 6:55 PM Anatoly Burakov > wrote: >> >> When file truncation fails, the log message attempts to print a path of >> file we failed to truncate, but this path was never set to anything and, >> what's worse, was uninitialized. Fix it

Re: [dpdk-dev] [PATCH] fbarray: fix uninitialized variable usage

2021-03-03 Thread David Marchand
On Fri, Feb 19, 2021 at 6:55 PM Anatoly Burakov wrote: > > When file truncation fails, the log message attempts to print a path of > file we failed to truncate, but this path was never set to anything and, > what's worse, was uninitialized. Fix it by passing path from the caller. > > Fixes: c44d09

[dpdk-dev] [PATCH] fbarray: fix uninitialized variable usage

2021-02-19 Thread Anatoly Burakov
When file truncation fails, the log message attempts to print a path of file we failed to truncate, but this path was never set to anything and, what's worse, was uninitialized. Fix it by passing path from the caller. Fixes: c44d09811b40 ("eal: add shared indexed file-backed array") Cc: sta...@dpd