Re: [patch] hvc_xen: NULL dereference on allocation failure

2012-05-21 Thread Konrad Rzeszutek Wilk
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()

Re: [patch] hvc_xen: NULL dereference on allocation failure

2012-05-15 Thread Stefano Stabellini
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 S