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