From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cooper Subject: Re: [PATCH] x86/hvm: avoid potential NULL pointer dereferences Date: Fri, 10 Jul 2015 14:47:02 +0100 Message-ID: <559FCCD6.8090900@citrix.com> References: <1436535924-17041-1-git-send-email-paul.durrant@citrix.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1436535924-17041-1-git-send-email-paul.durrant@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: Paul Durrant , xen-devel@lists.xen.org Cc: Keir Fraser , Jan Beulich List-Id: xen-devel@lists.xenproject.org On 10/07/15 14:45, Paul Durrant wrote: > Coverity flagged that hvm_next_io_handler() will return NULL after > calling domain_crash() and this will then lead to NULL pointer > dereferences in calling functions. > > This patch checks for NULL in the callers and bails in that case. > > Signed-off-by: Paul Durrant > Cc: Keir Fraser > Cc: Jan Beulich > Cc: Andrew Cooper Reviewed-by: Andrew Cooper