Commit bbb642f9 authored by Kulikov Vasiliy's avatar Kulikov Vasiliy Committed by Dave Airlie
Browse files

drm: radeon: check kzalloc() result



If kzalloc() fails exit with -ENOMEM.
Signed-off-by: default avatarKulikov Vasiliy <segooon@gmail.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 1e8655f8
......@@ -1177,6 +1177,8 @@ int r300_cs_parse(struct radeon_cs_parser *p)
int r;
track = kzalloc(sizeof(*track), GFP_KERNEL);
if (track == NULL)
return -ENOMEM;
r100_cs_track_clear(p->rdev, track);
p->track = track;
do {
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment