Re: [PATCH v4] kernel-device: use device sysfs if physdev sysfs isn't available

2017-03-02 Thread Aleksander Morgado
On 03/03/17 03:57, Ben Chan wrote: > 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

[PATCH v4] kernel-device: use device sysfs if physdev sysfs isn't available

2017-03-02 Thread Ben Chan
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