sna: Only destroy the old GPU after successfully replacing it
authorChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Nov 2013 11:12:30 +0000 (11:12 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Mon, 4 Nov 2013 11:12:30 +0000 (11:12 +0000)
commitad3959324c02de2e73e7d1142d42248f7dbb4518
tree1299fccbe72755b7ed104ff493cb3bdf5605a73f
parent8d067e961920e19fda7e9990440ac2be1a2e1760
sna: Only destroy the old GPU after successfully replacing it

Along the sna_replace__xor path we destroyed the priv->gpu_bo twice upon
successfully replacing it.

References: https://bugs.freedesktop.org/show_bug.cgi?id=70527
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_io.c