From: Ian Jackson Subject: Re: [PATCH 3/5] tools/libxc: Improve xc_dom_malloc_filemap() error handling Date: Mon, 25 Nov 2013 12:13:40 +0000 Message-ID: <21139.16116.159327.574346@mariner.uk.xensource.com> References: <1385377551-20826-1-git-send-email-andrew.cooper3@citrix.com> <1385377551-20826-4-git-send-email-andrew.cooper3@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1385377551-20826-4-git-send-email-andrew.cooper3@citrix.com> List-Unsubscribe: , List-Post: List-Help: List-Subscribe: , Sender: xen-devel-bounces@lists.xen.org Errors-To: xen-devel-bounces@lists.xen.org To: Andrew Cooper Cc: Ian Campbell , Xen-devel List-Id: xen-devel@lists.xenproject.org Andrew Cooper writes ("[PATCH 3/5] tools/libxc: Improve xc_dom_malloc_filemap() error handling"): > Coverity ID 1055563 > > In the original function, mmap() could be called with a length of -1 if the > second lseek failed and the caller had not provided max_size. > > While fixing up this error, improve the logging of other error paths. I know > from personal experience that debugging failures function is rather difficult > given only "xc_dom_malloc_filemap: failed (on file )" in the logs. > > Signed-off-by: Andrew Cooper > CC: Ian Campbell Acked-by: Ian Jackson Committed-by: Ian Jackson