On Wed, Apr 02, 2014 at 07:21:01PM +0100, oscar.mateo@xxxxxxxxx wrote: > From: Oscar Mateo <oscar.mateo@xxxxxxxxx> > > Otherwise, we do a NULL pointer dereference. Or we could just do was_pin_display = obj->pin_display; obj->pin_display = true; err_unpin_display: obj->pin_display = was_pin_display; And then we wouldn't even need the essay... However, it is almost a theory of operation and quite useful... -Chris -- Chris Wilson, Intel Open Source Technology Centre _______________________________________________ Intel-gfx mailing list Intel-gfx@xxxxxxxxxxxxxxxxxxxxx http://lists.freedesktop.org/mailman/listinfo/intel-gfx