[patch] hvc_xen: NULL dereference on allocation failure

Stefano Stabellini stefano.stabellini at eu.citrix.com
Tue May 15 20:20:23 EST 2012


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 <dan.carpenter at oracle.com>

Acked-by: Stefano Stabellini <stefano.stabellini at eu.citrix.com>
 


More information about the Linuxppc-dev mailing list