xf86drmMode: smoke-test the atomic API
authorEmil Velikov <emil.l.velikov@gmail.com>
Sat, 5 Sep 2015 16:20:53 +0000 (17:20 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 21 Sep 2015 16:32:03 +0000 (17:32 +0100)
commited3c665548c2c0400a7e9e91cb9324c9e1f29375
tree3c528e88f014dd647ba4f8c7ccf04984a52ed80a
parent00808a99d05929f675bb4ab680a1ffc6d0868ba4
xf86drmMode: smoke-test the atomic API

As going through the modetest patches for atomic support I've noticed
that if we pass NULL for the drmModeAtomicReqPtr argument we'll crash.

So let's handle things appropriately if the user forgot to check the
return value of drmModeAtomicAlloc and drmModeAtomicDuplicate or made a
typo somewhere along the way.

Cc: Ville Syrjälä <ville.syrjala@linux.intel.com>
Cc: Rob Clark <robclark@freedesktop.org>
Cc: Daniel Stone <daniels@collabora.com>
Signed-off-by: Emil Velikov <emil.l.velikov@gmail.com>
xf86drmMode.c