[PATCH] bluez-gnome access volatile while adapter-changed
Ming-I Hsieh <[email protected]>
| Newsgroups | gmane.linux.bluez.devel |
|---|---|
| Message-ID | <[email protected]> |
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. ------------------------------------------------------------------------- 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 [email protected] https://lists.sourceforge.net/lists/listinfo/bluez-devel
inquiry-crash.patch
(text/x-patch, 435 B)
--- 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) {