> -Original Message-
> From: Stephen Hemminger
> Sent: 07 June 2023 20:32
> To: Srikanth Yalavarthi
> Cc: Anup Prabhu ; dev@dpdk.org; Shivah Shankar
> Shankar Narayan Rao ; Prince Takkar
>
> Subject: [EXT] Re: [PATCH v4] app/mldev: add internal function for file
On Wed, 7 Jun 2023 04:35:56 -0700
Srikanth Yalavarthi wrote:
> + if (file_buffer)
> + free(file_buffer);
Unnecessary if() since free(NULL) is ok.
Added internal function to read model, input and reference
files with required error checks. This change fixes the
unchecked return value and improper use of negative value
issues reported by coverity scan for file read operations.
Coverity issue: 383742, 383743
Fixes: f6661e6d9a3a ("app/mldev: va
3 matches
Mail list logo