From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from acsinet14.oracle.com (acsinet14.oracle.com [141.146.126.236]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (Client CN "acsinet14.oracle.com", Issuer "VeriSign Class 3 International Server CA - G3" (not verified)) by ozlabs.org (Postfix) with ESMTPS id 6E47BB6F86 for ; Tue, 22 May 2012 01:43:32 +1000 (EST) Received: from acsinet15.oracle.com (acsinet15.oracle.com [141.146.126.227]) by acsinet14.oracle.com (Sentrion-MTA-4.2.2/Sentrion-MTA-4.2.2) with ESMTP id q4LFhTpC000337 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Mon, 21 May 2012 15:43:29 GMT Date: Mon, 21 May 2012 10:40:53 -0400 From: Konrad Rzeszutek Wilk To: Stefano Stabellini Subject: Re: [patch] hvc_xen: NULL dereference on allocation failure Message-ID: <20120521144053.GA24239@phenom.dumpdata.com> References: <20120515084746.GC30265@elgon.mountain> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii In-Reply-To: Cc: Greg Kroah-Hartman , "kernel-janitors@vger.kernel.org" , "linux-kernel@vger.kernel.org" , "linuxppc-dev@lists.ozlabs.org" , Dan Carpenter , Alan Cox List-Id: Linux on PowerPC Developers Mail List List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, May 15, 2012 at 11:20:23AM +0100, Stefano Stabellini wrote: > On Tue, 15 May 2012, Dan Carpenter wrote: > > If kzalloc() returns a NULL here, we pass a NULL to > > xencons_disconnect_backend() which will cause an Oops. > > > > Also I removed the __GFP_ZERO while I was at it since kzalloc() implies > > __GFP_ZERO. > > > > Signed-off-by: Dan Carpenter > > Acked-by: Stefano Stabellini applied. > > -- > To unsubscribe from this list: send the line "unsubscribe linux-kernel" in > the body of a message to majordomo@vger.kernel.org > More majordomo info at http://vger.kernel.org/majordomo-info.html > Please read the FAQ at http://www.tux.org/lkml/