sna: Only couple up a proxy->rq when inserting into the request->buffers list
authorChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Mar 2014 12:17:55 +0000 (12:17 +0000)
committerChris Wilson <chris@chris-wilson.co.uk>
Wed, 12 Mar 2014 12:23:53 +0000 (12:23 +0000)
commit08d73f1a4499cfe7c3121ff2ecdd36729c5f3544
tree87805704e2a098cb3bad69c3d6e9301212813260
parent2f50261539618c30c8470a5795fe5c2440e2318f
sna: Only couple up a proxy->rq when inserting into the request->buffers list

Otherwise, we may never decouple it again afterwards leading to a
dangling pointer dereference.

Bugzilla: https://bugs.launchpad.net/ubuntu/+source/xserver-xorg-video-intel/+bug/1289923
Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/kgem.c
src/sna/kgem.h