diff options
| -rw-r--r-- | recipes-graphics/wayland/weston/0001-g2d-renderer-Fix-open-function-build-break.patch | 22 |
1 files changed, 5 insertions, 17 deletions
diff --git a/recipes-graphics/wayland/weston/0001-g2d-renderer-Fix-open-function-build-break.patch b/recipes-graphics/wayland/weston/0001-g2d-renderer-Fix-open-function-build-break.patch index 38e78aa22..6f676048b 100644 --- a/recipes-graphics/wayland/weston/0001-g2d-renderer-Fix-open-function-build-break.patch +++ b/recipes-graphics/wayland/weston/0001-g2d-renderer-Fix-open-function-build-break.patch | |||
| @@ -18,11 +18,11 @@ Signed-off-by: Tom Hochstein <tom.hochstein@nxp.com> | |||
| 18 | libweston/g2d-renderer.c | 4 ++-- | 18 | libweston/g2d-renderer.c | 4 ++-- |
| 19 | 1 file changed, 2 insertions(+), 2 deletions(-) | 19 | 1 file changed, 2 insertions(+), 2 deletions(-) |
| 20 | 20 | ||
| 21 | diff --git a/libweston/g2d-renderer.c b/libweston/g2d-renderer.c | 21 | Index: git/libweston/g2d-renderer.c |
| 22 | index cc82711..0675350 100644 | 22 | =================================================================== |
| 23 | --- a/libweston/g2d-renderer.c | 23 | --- git.orig/libweston/g2d-renderer.c |
| 24 | +++ b/libweston/g2d-renderer.c | 24 | +++ git/libweston/g2d-renderer.c |
| 25 | @@ -1626,7 +1626,7 @@ g2d_renderer_create(struct weston_compositor *ec) | 25 | @@ -1626,7 +1626,7 @@ g2d_renderer_create(struct weston_compos |
| 26 | path = malloc(strlen(dir) + 40); | 26 | path = malloc(strlen(dir) + 40); |
| 27 | strcpy(path, dir); | 27 | strcpy(path, dir); |
| 28 | strcat(path, "/use-g2d-renderer"); | 28 | strcat(path, "/use-g2d-renderer"); |
| @@ -31,15 +31,3 @@ index cc82711..0675350 100644 | |||
| 31 | free(path); | 31 | free(path); |
| 32 | 32 | ||
| 33 | return 0; | 33 | return 0; |
| 34 | @@ -1804,7 +1804,7 @@ fb_frame_buffer_open(struct g2d_output_state *output, const char *fb_dev, | ||
| 35 | struct fb_screeninfo *screen_info) | ||
| 36 | { | ||
| 37 | /* Open the frame buffer device. */ | ||
| 38 | - screen_info->fb_fd = open(fb_dev, O_RDWR | O_CLOEXEC); | ||
| 39 | + screen_info->fb_fd = open(fb_dev, O_RDWR | O_CLOEXEC, 0600); | ||
| 40 | if (screen_info->fb_fd < 0) { | ||
| 41 | weston_log("Failed to open frame buffer device%s \n", fb_dev); | ||
| 42 | return -1; | ||
| 43 | -- | ||
| 44 | 2.7.4 | ||
| 45 | |||
