drm/qxl: Avoid double free on error
authorFrediano Ziglio <fziglio@redhat.com>
Wed, 3 Jun 2015 11:09:12 +0000 (12:09 +0100)
committerDave Airlie <airlied@redhat.com>
Fri, 5 Jun 2015 01:00:49 +0000 (11:00 +1000)
commitfe2af53baec1b3b64ee343d4e7e6a351e52e3b48
tree66242c3026421d0b535440d8be0b9ef98a6d734c
parent55cc3df08a2c6a9c9c20b34ba26de0512a750b5e
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>
drivers/gpu/drm/qxl/qxl_ioctl.c