Ben Chan
f0cda20930
kernel-device: use device sysfs if physdev sysfs isn't available
...
find_device_by_physdev_uid() expects a non-NULL UID of the physical
device. However, mm_kernel_device_get_physdev_uid() could potentially
return NULL on MMKernelDeviceUdev if find_physical_gudevdevice() in
mm-kernel-device-udev.c fails to find the physical device. When a NULL
physical device UID is passed to find_device_by_physdev_uid() and used
in g_hash_table_lookup(), it leads to a crash in g_str_hash(), which is
a bit obscure.
This patch updates kernel_device_get_physdev_uid() in
mm-kernel-device-udev.c to fall back to use the device sysfs if the
physical device sysfs isn't available, which is similar to how
kernel_device_get_physdev_uid() mm-kernel-device-generic.c is
implemented.
2017-03-03 07:26:59 +01:00
..
2017-03-03 07:26:59 +01:00
2017-02-03 10:05:14 +01:00
2014-01-26 19:33:45 +01:00
2014-01-26 19:33:45 +01:00
2017-02-05 20:56:23 +01:00
2016-08-06 10:41:52 +02:00
2016-08-06 10:41:52 +02:00
2017-02-03 10:05:14 +01:00
2016-09-29 15:43:05 +02:00
2014-05-20 09:32:29 +02:00
2012-03-16 14:53:15 +01:00
2012-03-16 14:53:15 +01:00
2015-08-02 10:39:12 +02:00
2012-03-16 14:53:15 +01:00
2012-03-16 14:53:15 +01:00
2016-10-12 13:24:09 +02:00
2016-10-12 11:29:52 +02:00
2016-08-02 16:27:56 -05:00
2015-08-02 10:39:48 +02:00
2016-09-29 15:43:05 +02:00
2016-09-29 15:43:05 +02:00
2014-02-13 13:40:21 +01:00
2014-02-13 13:40:01 +01:00
2017-01-04 14:11:17 +01:00
2017-01-04 14:11:17 +01:00
2016-02-13 14:27:51 +01:00
2014-07-06 16:55:29 +02:00
2014-07-06 16:55:29 +02:00
2014-07-06 16:55:29 +02:00
2015-12-03 12:01:14 +01:00
2015-12-03 12:01:14 +01:00
2016-10-12 11:29:52 +02:00
2014-07-06 16:55:29 +02:00
2017-03-01 12:57:48 -06:00
2016-07-15 19:31:45 +02:00
2016-10-12 13:24:09 +02:00
2016-10-12 11:29:52 +02:00
2017-03-01 18:43:45 +01:00
2014-05-20 09:32:29 +02:00
2017-02-28 11:13:04 +01:00
2012-08-29 17:26:42 +02:00
2017-02-28 13:44:48 -06:00
2016-08-10 09:49:40 +02:00
2015-08-02 10:39:48 +02:00
2015-08-02 10:39:48 +02:00
2016-08-15 13:14:47 +02:00
2012-09-12 23:03:58 -05:00
2016-09-29 15:43:05 +02:00
2016-09-29 15:43:05 +02:00
2017-02-13 20:31:20 +01:00
2016-09-29 15:43:05 +02:00
2016-08-15 13:14:47 +02:00
2012-10-04 10:17:13 +02:00
2012-10-11 11:41:15 +02:00
2014-02-13 13:40:01 +01:00
2016-10-12 13:24:08 +02:00
2014-02-13 13:40:01 +01:00
2015-12-02 17:07:39 +01:00
2014-02-13 13:40:01 +01:00
2016-06-01 12:12:47 -05:00
2014-07-01 15:42:21 +02:00
2015-12-19 12:22:30 +01:00
2014-09-05 11:30:24 +02:00
2016-03-09 14:43:08 +01:00
2016-03-09 14:43:08 +01:00
2013-09-09 10:20:42 +02:00
2014-07-01 15:42:21 +02:00
2015-12-02 17:07:39 +01:00
2013-08-21 12:34:54 +02:00
2015-12-03 12:00:22 +01:00
2015-12-02 17:07:39 +01:00
2014-07-01 15:42:21 +02:00
2015-08-02 10:39:48 +02:00
2015-08-02 10:39:48 +02:00
2016-10-12 13:24:09 +02:00
2016-08-10 09:39:27 +02:00
2013-04-18 11:23:57 -05:00
2014-05-20 09:32:29 +02:00
2014-06-19 18:05:48 +02:00
2013-12-05 13:01:44 -06:00
2015-09-25 22:41:25 +02:00
2014-11-12 13:13:11 +01:00
2016-11-18 10:25:07 +01:00
2016-10-12 13:24:09 +02:00
2016-09-29 15:43:05 +02:00
2016-03-09 23:59:46 +01:00
2016-11-21 13:44:08 +01:00
2016-09-29 15:43:05 +02:00
2014-08-22 18:43:20 +02:00
2014-02-13 13:40:07 +01:00
2013-04-04 19:26:51 +02:00
2012-11-27 09:56:25 -06:00
2016-11-07 17:52:57 +01:00
2016-09-29 15:43:05 +02:00
2016-07-14 14:59:28 +02:00
2016-01-24 17:23:46 +01:00
2016-01-23 11:19:19 +01:00
2014-02-13 13:40:55 +01:00
2016-01-23 11:19:19 +01:00
2014-02-13 13:39:54 +01:00
2016-07-27 10:44:43 -05:00
2016-07-27 10:44:43 -05:00
2017-01-26 17:33:41 +01:00
2016-01-23 11:19:19 +01:00
2016-09-29 15:43:05 +02:00
2016-09-29 15:43:05 +02:00
2012-08-06 20:06:46 +02:00
2012-08-06 20:06:46 +02:00
2013-06-25 11:48:43 +02:00
2013-04-04 19:26:51 +02:00
2014-12-30 12:46:07 +01:00
2014-07-06 16:55:29 +02:00
2016-02-11 10:52:09 +01:00
2016-02-11 10:52:09 +01:00
2016-03-21 23:48:46 +01:00
2015-02-07 12:57:48 +01:00
2014-07-06 16:55:29 +02:00
2014-07-06 16:55:29 +02:00
2014-12-30 12:46:07 +01:00
2014-07-06 16:55:29 +02:00
2013-10-25 19:47:19 +02:00
2015-09-22 09:24:18 +02:00
2014-05-20 09:32:29 +02:00
2013-10-25 19:47:19 +02:00
2013-10-25 19:47:18 +02:00
2013-10-25 19:47:19 +02:00
2014-07-06 16:55:29 +02:00
2014-07-06 16:55:29 +02:00
2015-02-07 12:57:48 +01:00