drm/radeon: check kmalloc() for failures
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 15 May 2012 08:56:59 +0000 (11:56 +0300)
committerDave Airlie <airlied@redhat.com>
Thu, 17 May 2012 10:13:03 +0000 (11:13 +0100)
commitce0679136678a58cbeca40acd84b6a0462637454
treeb75ecd45dba9025053ff1b182b32ad7aa3fac58f
parentbffd9de0297702566e6aec0678c7ebc3806fe3db
drm/radeon: check kmalloc() for failures

We can just return -ENOMEM here if the allocation fails.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/r100.c