]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commite7e94a627f7316ea3f5dc66b4b711f8f24fe76db
treea73a7ced4a30a128a3b41e2ebf4537dba8a416ba
parent72f6b6d343e1598e2b6e36468251cea93166fe41
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