diff options
author | Aleksander Morgado <aleksander@lanedo.com> | 2013-06-10 20:30:13 +0200 |
---|---|---|
committer | Aleksander Morgado <aleksander@lanedo.com> | 2013-06-10 20:30:13 +0200 |
commit | 6920a177d6c2522a2a78ab65b0f3ba7d0c2af05a (patch) | |
tree | 5bf1ddef85812ee06b8774f4aee672271fc02fd5 | |
parent | 97657908315b530ad0c7cbbbd12886d69b44c358 (diff) |
manager: require whitelist for devices in the 'pnp' subsystem
-rw-r--r-- | src/mm-manager.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/src/mm-manager.c b/src/mm-manager.c index 69134e13..7103a002 100644 --- a/src/mm-manager.c +++ b/src/mm-manager.c @@ -285,10 +285,11 @@ device_added (MMManager *manager, goto out; } - /* If the physdev is a 'platform' device that's not whitelisted, ignore it */ + /* If the physdev is a 'platform' or 'pnp' device that's not whitelisted, ignore it */ physdev_subsys = g_udev_device_get_subsystem (physdev); if ( physdev_subsys - && !strcmp (physdev_subsys, "platform") + && ( g_str_equal (physdev_subsys, "platform") + || g_str_equal (physdev_subsys, "pnp")) && !g_udev_device_get_property_as_boolean (physdev, "ID_MM_PLATFORM_DRIVER_PROBE")) { mm_dbg ("(%s/%s): port's parent platform driver is not whitelisted", subsys, name); goto out; |