Re: [PATCH 08/16] block/qcow2: Fix missing ERRP_GUARD() for error_prepend()

2024-03-08 Thread Zhao Liu
On Thu, Feb 29, 2024 at 02:48:44PM -0600, Eric Blake wrote: > Date: Thu, 29 Feb 2024 14:48:44 -0600 > From: Eric Blake > Subject: Re: [PATCH 08/16] block/qcow2: Fix missing ERRP_GUARD() for > error_prepend() > > On Thu, Feb 29, 2024 at 12:37:15AM +0800, Zhao Liu wrote:

Re: [PATCH 08/16] block/qcow2: Fix missing ERRP_GUARD() for error_prepend()

2024-02-29 Thread Eric Blake
On Thu, Feb 29, 2024 at 12:37:15AM +0800, Zhao Liu wrote: > From: Zhao Liu > > As the comment in qapi/error, passing @errp to error_prepend() requires > ERRP_GUARD(): > > > In block/qcow2.c, there're 2 functions passing @errp to error_prepend() s/there're/there are/ > without ERRP_GUARD(): >

[PATCH 08/16] block/qcow2: Fix missing ERRP_GUARD() for error_prepend()

2024-02-28 Thread Zhao Liu
From: Zhao Liu As the comment in qapi/error, passing @errp to error_prepend() requires ERRP_GUARD(): * = Why, when and how to use ERRP_GUARD() = * * Without ERRP_GUARD(), use of the @errp parameter is restricted: ... * - It should not be passed to error_prepend(), error_vprepend() or * error_a