diff options
author | 2014-09-02 09:51:15 -0300 | |
---|---|---|
committer | 2014-09-17 10:54:33 +1000 | |
commit | b478e336b3e75505707a11e78ef8b964ef0a03af (patch) | |
tree | 59ad1d8e4434f4c42ff4dc96184a6762012afb60 /tools/perf/scripts/python/call-graph-from-postgresql.py | |
parent | Merge tag 'drm-intel-next-2014-09-05' of git://anongit.freedesktop.org/drm-intel into drm-next (diff) | |
download | linux-dev-b478e336b3e75505707a11e78ef8b964ef0a03af.tar.xz linux-dev-b478e336b3e75505707a11e78ef8b964ef0a03af.zip |
drm/tilcdc: Fix the error path in tilcdc_load()
The current error path calls tilcdc_unload() in case of an error to release
the resources. However, this is wrong because not all resources have been
allocated by the time an error occurs in tilcdc_load().
To fix it, this commit adds proper labels to bail out at the different
stages in the load function, and release only the resources actually allocated.
Tested-by: Darren Etheridge <detheridge@ti.com>
Tested-by: Johannes Pointner <johannes.pointner@br-automation.com>
Signed-off-by: Ezequiel Garcia <ezequiel@vanguardiasur.com.ar>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/call-graph-from-postgresql.py')
0 files changed, 0 insertions, 0 deletions