drivers/gpu/drm/radeon/radeon_cs.c: eliminate possible double free
authorJulia Lawall <Julia.Lawall@lip6.fr>
Sat, 17 Mar 2012 17:03:29 +0000 (18:03 +0100)
committerDave Airlie <airlied@redhat.com>
Tue, 20 Mar 2012 08:45:27 +0000 (08:45 +0000)
commitf48bb04a56fd1f582a45f3882255477417bc0ed7
treea73a7ced4a30a128a3b41e2ebf4537dba8a416ba
parentabc8113fe56948858ff44f4b1795875be0cb5e99
drivers/gpu/drm/radeon/radeon_cs.c: eliminate possible double free

The function radeon_cs_parser_init is only called from two places, in
drivers/gpu/drm/radeon/radeon_cs.c and drivers/gpu/drm/radeon/r600_cs.c.
In each case, if the call fails another function is called that frees all
of the kdata and dpage information in the chunks array.  So this
information should not be freed in radeon_cs_parser_init as well.

Signed-off-by: Julia Lawall <Julia.Lawall@lip6.fr>
Reviewed-by: Jerome Glisse <jglisse@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
drivers/gpu/drm/radeon/radeon_cs.c