On Fri, Sep 06, 2024 at 02:13:33AM -0700, Zhu Jun wrote:
> Added error handling for memory allocation failures
> of file_name and path_name.
>
> Signed-off-by: Zhu Jun
Applied to hyperv-next, thanks.
On Sat, Sep 07, 2024 at 12:53:02AM +, Dexuan Cui wrote:
> > From: Zhu Jun
> > Sent: Friday, September 6, 2024 2:14 AM
>
> Reviewed-by: Dexuan Cui
Tested-by: Saurabh Sengar
- Saurabh
> From: Zhu Jun
> Sent: Friday, September 6, 2024 2:14 AM
Reviewed-by: Dexuan Cui
Added error handling for memory allocation failures
of file_name and path_name.
Signed-off-by: Zhu Jun
---
v1->v2:
Add cleanup memory
v2->v3:
If we're calling exit() just 2 lines later, it doesn't make a lot of
sense
to call free().
free(NULL) is valid (refer to "man