From: Dan Carpenter Date: Tue, 15 May 2012 08:47:47 +0000 (+0300) Subject: hvc_xen: NULL dereference on allocation failure X-Git-Tag: v3.5-rc1~89^2~1 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=201a52bea928687b7557728b176ac4f8a37d5cbd;p=pandora-kernel.git hvc_xen: NULL dereference on allocation failure 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. CC: stable@kernel.org Acked-by: Stefano Stabellini Signed-off-by: Dan Carpenter Signed-off-by: Konrad Rzeszutek Wilk --- Reading git-diff-tree failed