summaryrefslogtreecommitdiffstats
path: root/meta/recipes-graphics/menu-cache/files
diff options
context:
space:
mode:
authorLaurentiu Palcu <laurentiu.palcu@intel.com>2013-04-29 16:40:14 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-04-29 14:47:12 +0100
commiteb9e50d51497691f4ceb85f400fda549a62b2c02 (patch)
treefb647dd66fed20e06368a32f8a46a287e80fb61b /meta/recipes-graphics/menu-cache/files
parent2346b46558e48b4d373039a9296bee16a70cccf1 (diff)
downloadpoky-eb9e50d51497691f4ceb85f400fda549a62b2c02.tar.gz
menu-cache: Fix segmentation fault
[YOCTO #4353] (From OE-Core rev: 8c9c6155e6d83675a94b4eaae4ffc6dfeca399ee) Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-graphics/menu-cache/files')
-rw-r--r--meta/recipes-graphics/menu-cache/files/Fix-segfault.patch31
1 files changed, 31 insertions, 0 deletions
diff --git a/meta/recipes-graphics/menu-cache/files/Fix-segfault.patch b/meta/recipes-graphics/menu-cache/files/Fix-segfault.patch
new file mode 100644
index 0000000000..74a04074ec
--- /dev/null
+++ b/meta/recipes-graphics/menu-cache/files/Fix-segfault.patch
@@ -0,0 +1,31 @@
1From a497ea6aae3994b7f6527ef7599dd95baf2ad841 Mon Sep 17 00:00:00 2001
2From: Laurentiu Palcu <laurentiu.palcu@intel.com>
3Date: Mon, 29 Apr 2013 12:04:20 +0300
4Subject: [PATCH] Fix segfault
5
6Apparently, g_io_channel_unref() was called twice: once in the
7menu-cache's on_client_closed() callback and once from the finalize
8function, g_io_unix_finalize()/g_io_win32_finalize(), which is called
9anyway when the source is removed.
10
11Upstream-Status: Pending
12Signed-off-by: Laurentiu Palcu <laurentiu.palcu@intel.com>
13---
14 menu-cache-daemon/menu-cached.c | 1 -
15 1 file changed, 1 deletion(-)
16
17diff --git a/menu-cache-daemon/menu-cached.c b/menu-cache-daemon/menu-cached.c
18index e246bb4..a10b6db 100644
19--- a/menu-cache-daemon/menu-cached.c
20+++ b/menu-cache-daemon/menu-cached.c
21@@ -579,7 +579,6 @@ static void on_client_closed(gpointer user_data)
22 }
23 }
24 /* DEBUG("client closed"); */
25- g_io_channel_unref(ch);
26 }
27
28 static gboolean on_client_data_in(GIOChannel* ch, GIOCondition cond, gpointer user_data)
29--
301.7.9.5
31