[patch] drm/radeon: check for allocation failure in radeon_ring_backup()

2012-07-20 Thread Dan Carpenter
On Fri, Jul 20, 2012 at 03:45:28PM +0200, Christian K?nig wrote: > On 20.07.2012 13:17, Dan Carpenter wrote: > >Static checkers complain if this we don't check for allocation failure. > >Also we can use the new kmalloc_array() function here as a cleanup. > > > >Signed-off-by: Dan Carpenter >

[patch] drm/radeon: check for allocation failure in radeon_ring_backup()

2012-07-20 Thread Christian König
On 20.07.2012 13:17, Dan Carpenter wrote: > Static checkers complain if this we don't check for allocation failure. > Also we can use the new kmalloc_array() function here as a cleanup. > > Signed-off-by: Dan Carpenter What's the benefit of using kmalloc_array instead of just kmalloc? Anyway

Re: [patch] drm/radeon: check for allocation failure in radeon_ring_backup()

2012-07-20 Thread Christian König
On 20.07.2012 13:17, Dan Carpenter wrote: Static checkers complain if this we don't check for allocation failure. Also we can use the new kmalloc_array() function here as a cleanup. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com What's the benefit of using kmalloc_array instead of just

[patch] drm/radeon: check for allocation failure in radeon_ring_backup()

2012-07-20 Thread Dan Carpenter
Static checkers complain if this we don't check for allocation failure. Also we can use the new kmalloc_array() function here as a cleanup. Signed-off-by: Dan Carpenter dan.carpen...@oracle.com diff --git a/drivers/gpu/drm/radeon/radeon_ring.c b/drivers/gpu/drm/radeon/radeon_ring.c index

Re: [patch] drm/radeon: check for allocation failure in radeon_ring_backup()

2012-07-20 Thread Dan Carpenter
On Fri, Jul 20, 2012 at 03:45:28PM +0200, Christian König wrote: On 20.07.2012 13:17, Dan Carpenter wrote: Static checkers complain if this we don't check for allocation failure. Also we can use the new kmalloc_array() function here as a cleanup. Signed-off-by: Dan Carpenter