[patch] hvc_xen: NULL dereference on allocation failure

2012-05-15 Thread Dan Carpenter
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 diff --git a/drivers/tty/hvc/hvc_xen.c b/drivers/tty/hvc/hvc_xen.c index 83

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

[PATCH] pseries/iommu: remove default window before attempting DDW manipulation

2012-05-15 Thread Nishanth Aravamudan
An upcoming release of firmware will add DDW extensions, in particular an API to "reset" the DMA window to the original configuration (32-bit, 2GB in size). With that API available, we can safely remove the default window, increasing the resources available to firmware for creation of larger window