Re: [patch] driver-core: dev_to_node() should handle NULL pointers

2012-08-16 Thread Greg Kroah-Hartman
On Fri, Jul 20, 2012 at 06:18:46PM +0300, Dan Carpenter wrote: > On Fri, Jul 20, 2012 at 08:00:42AM -0700, Greg Kroah-Hartman wrote: > > On Fri, Jul 20, 2012 at 09:56:23AM +0300, Dan Carpenter wrote: > > > What prompted this patch is that in dma_pool_create() we call > > > dev_to_node() before chec

Re: [patch] driver-core: dev_to_node() should handle NULL pointers

2012-07-20 Thread Dan Carpenter
On Fri, Jul 20, 2012 at 08:00:42AM -0700, Greg Kroah-Hartman wrote: > On Fri, Jul 20, 2012 at 09:56:23AM +0300, Dan Carpenter wrote: > > What prompted this patch is that in dma_pool_create() we call > > dev_to_node() before checking whether "dev" is NULL. It looks like > > there are places which c

Re: [patch] driver-core: dev_to_node() should handle NULL pointers

2012-07-20 Thread Greg Kroah-Hartman
On Fri, Jul 20, 2012 at 09:56:23AM +0300, Dan Carpenter wrote: > What prompted this patch is that in dma_pool_create() we call > dev_to_node() before checking whether "dev" is NULL. It looks like > there are places which call dma_pool_create() with a NULL pointer. An > example is in drivers/usb/g

[patch] driver-core: dev_to_node() should handle NULL pointers

2012-07-19 Thread Dan Carpenter
What prompted this patch is that in dma_pool_create() we call dev_to_node() before checking whether "dev" is NULL. It looks like there are places which call dma_pool_create() with a NULL pointer. An example is in drivers/usb/gadget/amd5536udc.c. Signed-off-by: Dan Carpenter --- Static checker f