drm/radeon: fix potential NULL dereference in drivers/gpu/drm/radeon/atom.c
authorBojan Prtvar <prtvar.b@gmail.com>
Wed, 3 Aug 2011 19:51:19 +0000 (19:51 +0000)
committerDave Airlie <airlied@redhat.com>
Thu, 4 Aug 2011 13:39:06 +0000 (14:39 +0100)
commit816985d4f96cda5159b6b65f3442964725030ae9
tree30339b75f344552ef362d7b9b7aa6739673d8efc
parent69ad2ffe57a81c7b700e337f066b8b39c3655910
drm/radeon: fix potential NULL dereference in drivers/gpu/drm/radeon/atom.c

kzalloc() can return NULL, so I added check for it

Signed-off-by: Bojan Prtvar <prtvar.b@gmail.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/atom.c