| 
    
 [Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [Xen-devel] [Patch v2] xl: Fix CHK_ERRNO
 On 12/09/2013 03:12 PM, Andrew Cooper wrote: The macro CHK_ERRNO() was being used to check two different error schemes, and succeeded at neither. Split the macro into two; CHK_ERRNO() for calls which return -1 and set errno on error, and CHK_LIBXLERR() for calls which return a positive errno. In both cases, ensure that strerror() now gets called with the error integer. Coverity ID: 1055570 1090374 1130516 Signed-off-by: Andrew Cooper <andrew.cooper3@xxxxxxxxxx> CC: Ian Campbell <Ian.Campbell@xxxxxxxxxx> CC: Ian Jackson <Ian.Jackson@xxxxxxxxxxxxx> CC: George Dunlap <george.dunlap@xxxxxxxxxxxxx> Clearly a bug fix, if a minor one. It does touch the domain creation as well as save/restore path, but is fairly simple and should also be very well tested between now and the release. Release-acked-by: George Dunlap <george.dunlap@xxxxxxxxxxxxx> --- Changes in v2: * s/CHK_POSERRNO/CHK_LIBXLERR/ --- tools/libxl/xl_cmdimpl.c | 39 ++++++++++++++++++++++++++------------- 1 file changed, 26 insertions(+), 13 deletions(-) diff --git a/tools/libxl/xl_cmdimpl.c b/tools/libxl/xl_cmdimpl.c index 4977a53..45cb658 100644 --- a/tools/libxl/xl_cmdimpl.c +++ b/tools/libxl/xl_cmdimpl.c @@ -41,15 +41,25 @@ #include "libxlutil.h" #include "xl.h"-#define CHK_ERRNO( call ) ({ \ _______________________________________________ Xen-devel mailing list Xen-devel@xxxxxxxxxxxxx http://lists.xen.org/xen-devel 
 
  | 
  
![]()  | 
            
         Lists.xenproject.org is hosted with RackSpace, monitoring our  |