sna: Ensure errno is set after failure before reporting a modeset failure
authorChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Jul 2014 08:40:14 +0000 (09:40 +0100)
committerChris Wilson <chris@chris-wilson.co.uk>
Tue, 22 Jul 2014 08:41:24 +0000 (09:41 +0100)
commitaa5351dbbe0a50080efee35a3d494b3a20b7c9f6
treeea3f27ab2f319a98d3aa5f2aaede084e2dc39447
parentfeba651db8dd61356fb6296b55d46168bd4d7011
sna: Ensure errno is set after failure before reporting a modeset failure

A few paths we report a sanity check failure which do not set errno, but
we then print out the errno as part of our message to the user. Set it
to a sane value in those cases.

Signed-off-by: Chris Wilson <chris@chris-wilson.co.uk>
src/sna/sna_display.c