compositor-drm: Don't try and scan out a SHM buffer directly 45/1745/1
authorRob Bradford <rob@linux.intel.com>
Fri, 14 Sep 2012 22:02:47 +0000 (23:02 +0100)
committerRob Bradford <rob@linux.intel.com>
Fri, 14 Sep 2012 22:09:15 +0000 (23:09 +0100)
commit027c68b5d0bea93c14595a7d8fd3e160d28b6ade
tree3314e8695f97174bd46c207bf1c2c7604e66e882
parentfd47694c68e7d75080c5124ae5d76d3b310d29eb
compositor-drm: Don't try and scan out a SHM buffer directly

gbm_bo_import will fail to produce a valid bo since the buffer is an SHM
buffer. This cause a crash when the NULL bo returned by gbm_bo_import is
dereferenced later.

Signed-off-by: Rob Bradford <rob@linux.intel.com>
src/compositor-drm.c