diff options
author | Frediano Ziglio <fziglio@redhat.com> | 2015-06-03 14:09:12 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2015-06-05 04:00:49 +0300 |
commit | fe2af53baec1b3b64ee343d4e7e6a351e52e3b48 (patch) | |
tree | 66242c3026421d0b535440d8be0b9ef98a6d734c /drivers/gpu/drm/qxl/qxl_release.c | |
parent | 55cc3df08a2c6a9c9c20b34ba26de0512a750b5e (diff) | |
download | linux-fe2af53baec1b3b64ee343d4e7e6a351e52e3b48.tar.xz |
drm/qxl: Avoid double free on error
Is we are not able to get source bo object from handle we free
destination bo object and call cleanup code however destination
object was already inserted in reloc_info array (num_relocs was
already incremented) so on cleanup we free destination again.
Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Reviewed-by: Dave Airlie <airlied@redhat.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/qxl/qxl_release.c')
0 files changed, 0 insertions, 0 deletions