public inbox for linux-bluetooth@vger.kernel.org
 help / color / mirror / Atom feed
* Re: [Bluez-devel] [PATCH] bluez-gnome access volatile while adapter-changed
@ 2008-03-11  2:29 Ming-I Hsieh
  2008-03-11 18:35 ` Bastien Nocera
  0 siblings, 1 reply; 5+ messages in thread
From: Ming-I Hsieh @ 2008-03-11  2:29 UTC (permalink / raw)
  To: BlueZ development; +Cc: Bastien Nocera

Hi, hadess

Thanks, I had got the patch from bugzilla and it work fine to fix this  
problem.

Regards, Mihs

Quoting <>:

>
> On Mon, 2008-03-10 at 14:36 +0800, Ming-I Hsieh wrote:
>> Hi, all
>>
>> This is a patch for this bug. This bug adddress at
>> bluetooth-device-select.c. While the dongle could be removed/inserted,
>> the gnome-applet may crash due to access a 0x0 priv.
>
> Good catch, but wrong fix, as we shouldn't even be listening to that
> signal anymore. If you could please test the patch I uploaded at:
> http://bugzilla.gnome.org/show_bug.cgi?id=519791#c4
>
> I'll post it here for Marcel to apply if it fixes the problem for you.
>
> Cheers
>
>



----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.



-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread
* [Bluez-devel] [PATCH] bluez-gnome access volatile while adapter-changed
@ 2008-03-10  6:36 Ming-I Hsieh
  2008-03-10 23:29 ` Bastien Nocera
  0 siblings, 1 reply; 5+ messages in thread
From: Ming-I Hsieh @ 2008-03-10  6:36 UTC (permalink / raw)
  To: bluez devel

[-- Attachment #1: Type: text/plain, Size: 320 bytes --]

Hi, all

This is a patch for this bug. This bug adddress at  
bluetooth-device-select.c. While the dongle could be removed/inserted,  
the gnome-applet may crash due to access a 0x0 priv.

----------------------------------------------------------------
This message was sent using IMP, the Internet Messaging Program.


[-- Attachment #2: inquiry-crash.patch --]
[-- Type: text/x-patch, Size: 435 bytes --]

--- gnome/common/bluetooth-device-selection.c.orig	2008-03-10 14:18:37.000000000 +0800
+++ gnome/common/bluetooth-device-selection.c	2008-03-10 14:16:00.000000000 +0800
@@ -322,6 +322,9 @@
 	BluetoothDeviceSelectionPrivate *priv = BLUETOOTH_DEVICE_SELECTION_GET_PRIVATE(self);
 	char *adapter;
 
+	// skip if no priv
+	if (priv == NULL) return;
+
 	g_object_get (gobject, "default-adapter", &adapter, NULL);
 
 	if (adapter == NULL) {

[-- Attachment #3: Type: text/plain, Size: 228 bytes --]

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/

[-- Attachment #4: Type: text/plain, Size: 164 bytes --]

_______________________________________________
Bluez-devel mailing list
Bluez-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/bluez-devel

^ permalink raw reply	[flat|nested] 5+ messages in thread

end of thread, other threads:[~2008-03-12 21:04 UTC | newest]

Thread overview: 5+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-03-11  2:29 [Bluez-devel] [PATCH] bluez-gnome access volatile while adapter-changed Ming-I Hsieh
2008-03-11 18:35 ` Bastien Nocera
2008-03-12 21:04   ` Marcel Holtmann
  -- strict thread matches above, loose matches on Subject: below --
2008-03-10  6:36 Ming-I Hsieh
2008-03-10 23:29 ` Bastien Nocera

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox