0002-NativeStateDRM-use-fixed-event-context-version.patch 907 B

12345678910111213141516171819202122232425262728
  1. From: Lucas Stach <l.stach@pengutronix.de>
  2. Date: Wed, 31 May 2017 13:01:00 +0200
  3. Subject: [PATCH] NativeStateDRM: use fixed event context version
  4. Using the latest version is not a good idea, as the context content may
  5. change between versions.
  6. Fixes a segfault with new kernel and libdrm.
  7. Signed-off-by: Lucas Stach <l.stach@pengutronix.de>
  8. Signed-off-by: Fabio Estevam <festevam@gmail.com>
  9. ---
  10. src/native-state-drm.cpp | 2 +-
  11. 1 file changed, 1 insertion(+), 1 deletion(-)
  12. diff --git a/src/native-state-drm.cpp b/src/native-state-drm.cpp
  13. index 454a24d898ff..b9af996667dc 100644
  14. --- a/src/native-state-drm.cpp
  15. +++ b/src/native-state-drm.cpp
  16. @@ -106,7 +106,7 @@ NativeStateDRM::flip()
  17. FD_ZERO(&fds);
  18. FD_SET(fd_, &fds);
  19. drmEventContext evCtx;
  20. - evCtx.version = DRM_EVENT_CONTEXT_VERSION;
  21. + evCtx.version = 2;
  22. evCtx.page_flip_handler = page_flip_handler;
  23. while (waiting) {