diff options
author | Michel Dänzer <daenzer@vmware.com> | 2009-09-15 11:09:33 -0400 |
---|---|---|
committer | Dave Airlie <airlied@linux.ie> | 2009-09-15 19:14:59 -0400 |
commit | fdd5cace733370ab7a518a98ef084e02aa76fdea (patch) | |
tree | e960695fefee2b805b946f377a6dd5019fc22925 /drivers/gpu | |
parent | 95a8f1bf4f48b434c9f839ab5a0773f66b39d7c6 (diff) |
drm/radeon/kms: Don't kzalloc memory which is immediately overwritten.
Signed-off-by: Michel Dänzer <daenzer@vmware.com>
Signed-off-by: Dave Airlie <airlied@linux.ie>
Diffstat (limited to 'drivers/gpu')
-rw-r--r-- | drivers/gpu/drm/radeon/radeon_cs.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/radeon/radeon_cs.c b/drivers/gpu/drm/radeon/radeon_cs.c index a169067efc4e..b530926a2178 100644 --- a/drivers/gpu/drm/radeon/radeon_cs.c +++ b/drivers/gpu/drm/radeon/radeon_cs.c | |||
@@ -145,7 +145,7 @@ int radeon_cs_parser_init(struct radeon_cs_parser *p, void *data) | |||
145 | cdata = (uint32_t *)(unsigned long)user_chunk.chunk_data; | 145 | cdata = (uint32_t *)(unsigned long)user_chunk.chunk_data; |
146 | 146 | ||
147 | size = p->chunks[i].length_dw * sizeof(uint32_t); | 147 | size = p->chunks[i].length_dw * sizeof(uint32_t); |
148 | p->chunks[i].kdata = kzalloc(size, GFP_KERNEL); | 148 | p->chunks[i].kdata = kmalloc(size, GFP_KERNEL); |
149 | if (p->chunks[i].kdata == NULL) { | 149 | if (p->chunks[i].kdata == NULL) { |
150 | return -ENOMEM; | 150 | return -ENOMEM; |
151 | } | 151 | } |